twchapman / nativeclient-sdk

Automatically exported from code.google.com/p/nativeclient-sdk
0 stars 0 forks source link

inline assembler compiles without errors but nexe does not load #108

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Original: http://code.google.com/p/nativeclient/issues/detail?id=2100

Original issue reported on code.google.com by dsprin...@chromium.org on 5 Aug 2011 at 6:34

GoogleCodeExporter commented 9 years ago

Original comment by dsprin...@chromium.org on 5 Aug 2011 at 7:12

GoogleCodeExporter commented 9 years ago
I added "-D__asm__=__asm__ __asm__Not_allowed_in_NaCl" to the compile flags - 
then I do get an error.

Original comment by assafRa...@gmail.com on 20 Aug 2011 at 5:31

GoogleCodeExporter commented 9 years ago
Reminder: this bug is about running the validator as a normal build step.

Original comment by dsprin...@chromium.org on 22 Aug 2011 at 4:39

GoogleCodeExporter commented 9 years ago

Original comment by dsprin...@chromium.org on 22 Aug 2011 at 4:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The validator is not a good solution, the validator doesn't tell you where in 
the code is the issue. While porting OGRE I tested the nexe with the validator. 
It didn't give me more information then trying to run in Chrome and getting a 
general error.
The only solution is for inline assembler to make the compiler show an error 
for each line that has it. Any other solution is not good.
For now you can use my solution - adding  "-D__asm__=__asm__ 
__asm__Not_allowed_in_NaCl" to the compile flags, but in the long run - better 
to just add an error.

Original comment by assafRa...@gmail.com on 26 Aug 2011 at 11:49