Re: [LM-32] Code generation for address loading

2014-02-26 Thread FX MOREL
On Tue, Feb 25, 2014 at 1:08 AM, Anthony Green wrote: > > Have you considered doing this through custom GNU linker relaxation > work? I would try this before hacking away at the compiler. > > AG > > This a very good idea indeed, I wasn't aware of this feature. I will give it a try based on othe

[LM-32] Code generation for address loading

2014-02-18 Thread FX MOREL
Hi everyone, I am developing on a custom design using the LatticeMico32 architecture and I use gcc 4.5.1 to compile C code for this arch. In this architecture, the loading of an address 0x always takes two assembly instructions to fetch the address because immediates are on 16 bits :