Re: [Tack-devel] arm and powerpc assembly
Moved to https://github.com/davidgiven/ack
                
                Brought to you by:
                
                    dtrg
                    
                
            
            
        
        
        
    | 
     
      
      
      From: David G. <dg...@co...> - 2013-05-08 00:05:08
      
     
   | 
On 06/05/13 18:14, David Given wrote: [...] > I have > actually found these in the working directory and will try to check them > in soon. So that's all checked in now... and there was a lot more stuff there than I expected. The PowerPC code generator all builds and runs, although I don't know whether it generates working code; the code quality is pretty dire but much less bad than I remember. There's a linuxppc plat to put it all together but trying to build executables fails. There is *also* a linux68k plat which uses the m68020 code generator. That's checked in too (and produces quite nice code; the m68k's addressing modes play nicely with em). As there's now three Linux plat, I also seem to have factored out a lot of the platform-independent Linux runtime code into plat/linux. In addition I found why I never checked all this in. I'd added EM support for a new opcode, STACKADJUST. This was used to tell ncgg about changes to (sp-fp), to allow it to calculate fp on-the-fly and not have to store it in a register. I recall that all this *worked*... for C. Unfortunately it violated some core em assumptions which caused the other languages (which used much more exotic em opcodes) to fail. I notice that this functionality's not actually used anywhere, so I obviously decided against using it in the PowerPC code generator. It's also likely to be full of bugs. Therefore I have not checked this into trunk, and have instead created a branch for it, dtrg-experimental-powerpc. It probably wants looking at carefully and piecemeal merging into trunk... http://tack.hg.sourceforge.net/hgweb/tack/tack/rev/e58c27045378 -- ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── │ │ "Home is where, when you have to go there, they have to take you in." │ --- Cordelia Naismith (via Robert Frost)  |