This is a modified version of the current x86 emitter, but uses at&t syntax for platforms where intel is not supported (mac). A new command line option is added: -as att|intel chooses between output syntax.
There are some known issues:
- It seems that symbols are not made global, resulting in a long list of unresolved references when compiling a project.
- SSE is not implemented yet
- Floating point operations with at&t syntax are messy in some cases. I haven't fully tested this to make sure it always gets the right results.
If any others are found, please let me know and I will try to fix them as soon as possible.
This is much more buggy than I originally thought and many language features are broken when using it. I am working on it.
Have you been able to solve the problems?
Well, at the moment we can also use -gen gcc for Mac, and it would also work for a 64bit Mac port, so that seems to work out ok.
Sorry, I stopped working on this a long time ago, and I don't have my mac
anymore either. I think -gen gcc is probably the best way forward though,
unless someone is really motivated to make this work (and familiar with
at&t assembly - I'm not). I was also interested in an LLVM port, but that
would take a lot of work, and is not something I have the time to work on
right now.
On Mon, Jun 24, 2013 at 6:51 AM, dkl dkls@users.sf.net wrote:
Related
Patches:
#22Ok, I see.