Bug #11622 2007-07-24 01:55

sarkar112

CodeBlocks modifies generated assembly code

Choosing the assembly flavour to output to via a compiler argument (eg. --masm=intel to use the intel syntax instead of the default at&t syntax - ATT) fails due to the fact that Code::Blocks modifies generated assembly code and adds code using the AT&T syntax, this results in the assembler failing to assemble the file, resulting in a failed compilation.

This affects end-users mostly because they cannot use inline assembly using other assembly flavors. (currently only intel and the default at&t are supported)

Category
Compiler
Group
 
Status
Closed
Close date
2007-07-25 17:10
Assigned to
 
biplab 2007-07-24 05:54

I could not get your point. Please explain the problem with more details and if possible, provide us source code to replicate it.

Please note that Code::Blocks is an IDE and it does *not* auto-generate or modify any source code that you are compiling. Possibly you're using the compiler option at wrong place which is being ignored during compilation.

biplab 2007-07-25 17:10

I've tried compiling a sample source with Inline-Assembly. C::B compiled them *properly* with *-masm=intel* or *-masm=att* compiler options.

I think you're putting the necessary option in wrong place.