|
2 registered members (TipmyPip, Quad),
3,678
guests, and 5
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Intel Assembly in GCC?
[Re: Redeemer]
#373290
06/09/11 00:05
06/09/11 00:05
|
Joined: Mar 2002
Posts: 1,774 Magdeburg
FlorianP
Serious User
|
Serious User
Joined: Mar 2002
Posts: 1,774
Magdeburg
|
I dont think you can get GCC to eat up Intelasm...not without huge effort anyway
But as far as I remember theres only one real difference between intel and at&t - you have to swap the source and destination adresses.
Last edited by FlorianP; 06/09/11 00:07.
I <3 LINQ
|
|
|
Re: Intel Assembly in GCC?
[Re: Redeemer]
#373303
06/09/11 09:57
06/09/11 09:57
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
Rewrite GAS, the GCC sends your assembly code right away to GAS so thats the point you need to change.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Intel Assembly in GCC?
[Re: WretchedSid]
#373309
06/09/11 12:32
06/09/11 12:32
|
Joined: Mar 2002
Posts: 1,774 Magdeburg
FlorianP
Serious User
|
Serious User
Joined: Mar 2002
Posts: 1,774
Magdeburg
|
Really? Since when does GAS support intelsyntax? Seems im a bit out of date here...
I <3 LINQ
|
|
|
Re: Intel Assembly in GCC?
[Re: FlorianP]
#373311
06/09/11 12:41
06/09/11 12:41
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
No it doesn't, but if Redeemer wants support for the intel syntax, he has to change GAS and not the GCC. But I agree, Intel and AT&T syntax is pretty similar, except of the swapped source and destination and the % that AT&T requires.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
|