Menu

#22 At&t emitter

closed
nobody
None
2013-06-25
2010-10-25
parkovski
No

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.

Related

Patches: #22

Discussion

  • parkovski

    parkovski - 2010-10-25
     
  • parkovski

    parkovski - 2010-11-03

    This is much more buggy than I originally thought and many language features are broken when using it. I am working on it.

     
  • dkl

    dkl - 2013-06-24

    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.

     
  • parkovski

    parkovski - 2013-06-25

    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:

    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.


    Status: open
    Labels: Compiler
    Created: Mon Oct 25, 2010 04:46 PM UTC by parkovski
    Last Updated: Tue Oct 09, 2012 05:41 PM UTC
    Owner: nobody

    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.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/fbc/patches/22/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Patches: #22

  • dkl

    dkl - 2013-06-25
    • labels: Compiler -->
    • status: open --> closed
     
  • dkl

    dkl - 2013-06-25

    Ok, I see.

     

Log in to post a comment.