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 gr...@moxielogic.com 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

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

2014-02-24 Thread Anthony Green
FX MOREL fxmorel@gmail.com writes: 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

[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 :