At&t syntax emitter
Looking pretty good already, would be awesome to solve all the issues. Right now I don't have time to play around with it, but I'll keep it in mind. I think it could eventually be included into fbc, even if it's not 100% compatible (inline assembly would probably be the only problem, as with -gen gcc).
Re: the C emitter, GCC can already output intel syntax, maybe we could reuse the -as option for that, which would fix some problems with inline asm:
fbc file.bas => fb generates intel asm
fbc file.bas -as att => fb generates at&t asm
fbc file.bas -gen gcc => fb generates c -> gcc generates at&t asm
fbc file.bas -gen gcc -as intel => fb generates c -> gcc generates intel asm (-masm=intel)
It might be better to make the c emitter default to intel syntax though for consistency, and use the -as option to switch back to at&t where needed.
Depending on what the devs think, maybe this could be added as a work in progress like the C emitter? That way someone with more experience in this area could just patch it up instead of having to track this down and add it into their compiler. Just an idea.
Re: any mac users, currently there's not really an easy way to get fb working on the mac, either with cross compiling or natively, but hopefully this is a step in the right direction, so stay tuned for more updates!
fbc file.bas => fb generates intel asm
fbc file.bas -as att => fb generates at&t asm
fbc file.bas -gen gcc => fb generates c -> gcc generates at&t asm
fbc file.bas -gen gcc -as intel => fb generates c -> gcc generates intel asm (-masm=intel)
It might be better to make the c emitter default to intel syntax though for consistency, and use the -as option to switch back to at&t where needed.
Depending on what the devs think, maybe this could be added as a work in progress like the C emitter? That way someone with more experience in this area could just patch it up instead of having to track this down and add it into their compiler. Just an idea.
Re: any mac users, currently there's not really an easy way to get fb working on the mac, either with cross compiling or natively, but hopefully this is a step in the right direction, so stay tuned for more updates!
What about my post of August 2009 ?
http://www.freebasic.net/forum/viewtopi ... 630#141630
http://www.freebasic.net/forum/viewtopi ... 630#141630
-
- Site Admin
- Posts: 6237
- Joined: Jul 05, 2005 17:32
- Location: Manchester, Lancs
Re: At&t syntax emitter
Hi. Just to say, I uploaded parkovski's patches as a github branch: www.github.com/countingpine/fbc/commits/parkovski_att
Re:
fxm wrote:What about my post of August 2009 ?
viewtopic.php?p=141630#141630
Coming from the old forum, the link above points only to the top of the right page, but not to the right post.
It lacks a "p" as this following to well point to the post:
viewtopic.php?p=141630#p141630
Is it a general problem due to the forum upgrade?
Re: At&t syntax emitter
I have the patch here in my private git repo too, although to be honest I stopped worrying about it, since parkovski said it wasn't ready yet. See also:
https://sourceforge.net/tracker/?func=d ... tid=693198
https://sourceforge.net/tracker/?func=d ... tid=693198
Re: At&t syntax emitter
So what about inline assembly in relation with the as Option?
Return to “Community Discussion”
Who is online
Users browsing this forum: No registered users and 9 guests