flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > High Level Languages > fasmg GCC x86 backend | 
  
| Author | 
  | 
              
| 
                  
                   Tomasz Grysztar 22 Apr 2017, 19:36 
                  Very interesting idea!
 
                  
                Does GCC produce register-based addresses with a strictly predictable structure? If it is always like displacement[base+index*scale] (plus simpler variants) then you could in theory replace the algebraic address parser that standard fasmg's macros use with a dedicated one. And parsing the AT&T syntax, as horrible as it is for anyone used to Intel one, could be probably even simpler.  | 
              |||
                  
  | 
              
| 
                  
                   Mike Gonta 22 Apr 2017, 20:14 
                  Tomasz Grysztar wrote: Very interesting idea! instead of a native compiler and many cross compilers.  | 
              |||
                  
  | 
              
| 
                  
                   shutdownall 22 Apr 2017, 22:18 
                  Tomasz Grysztar wrote: parsing the AT&T syntax, as horrible as it is for anyone used to Intel one, I think there are not much people who like the AT&T syntax at all.  | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.