linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* GAS/GCC Assembler Code Modification
@ 2004-05-15  9:28 Martin
  2004-05-15 10:15 ` sandeep
  2004-05-15 13:32 ` peter willy krause
  0 siblings, 2 replies; 6+ messages in thread
From: Martin @ 2004-05-15  9:28 UTC (permalink / raw)
  To: linux-assembly

Hi folks,

I have a question regarding GAS and GCC. 
Does the GAS modify the Assembler Code? If I try to assemble (for example) the following line:

popl %esi 

the gas changes that to

pop %esi 

Ok I guess this is ok, because the ESI Register is 'only' 32 Bit. So movw (= mov) would be ok. 

Next example:

If I try to assemble

movl $0xb,%eax 

the gas changes that to

mov $0xb,%eax

How can I tell gas that I dont want him to optimize the code?

Best regards,
Martin

PS: Sry for my poor english.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-05-15 21:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-15  9:28 GAS/GCC Assembler Code Modification Martin
2004-05-15 10:15 ` sandeep
2004-05-15 13:32 ` peter willy krause
2004-05-15 20:08   ` Martin
2004-05-15 21:45     ` peter willy krause
2004-05-15 21:01       ` Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).