You are not logged in.

#1 2016-03-09 22:23:29

hungerfish
Member
Registered: 2009-09-13
Posts: 254

GNU AS - the .intel_syntax directive

So, I'm messing around with some code and at some point started to play with assembly.
I read that you can include

.intel_syntax noprefix

in your code to make AS understand the 'proper'(*ducks*) x86 syntax.
For reference, you can also have gcc output assembly in 'intel' syntax with "-masm=intel", which generates output that can ne assembled with as.

However I can't get this to work properly on more generic examples
It seems to not understand ';' comments, among other things..
Is there anything that I'm just missing, or is this 'support' for the intel_syntax just very flakey?

EDIT:
To be a little more precise:

Is the '.intel' directive meant to enable me to use the gnu assembler to assemble files written in 'intel syntax',
in essence making it a drop-in replacement for nasm? (Disregarding other features/differences)??

Last edited by hungerfish (2016-03-10 11:12:53)


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

Board footer

Powered by FluxBB