Re: [avr-gcc-list] introducing a new section in data memory

2009-02-21 Thread Parthasaradhi Nayani
--- On Sat, 2/21/09, Georg-Johann Lay a...@gjlay.de wrote: The trouble might return if .data/.bss will grow and then overlap(s) No sir, I needed 256 bytes buffers two and the other variables may total to about 10 or so. The problem is that you cannot introduce holes in a section, i.e.

RE: [avr-gcc-list] introducing a new section in data memory

2009-02-21 Thread Parthasaradhi Nayani
--- On Sat, 2/21/09, Weddington, Eric ewedding...@cso.atmel.com wrote: It works for me. See attached demo. After the build look at the .map file and the disassembly file (.dis). Just realize that because your variable is now in the .test Attachment error. Trying again for the

[avr-gcc-list] How to tell avr-gcc not to use some registers in the whole program?

2009-02-21 Thread Lin Nan
Hello, everyone! In my project, I need to bind four registers to two 16 bit pointers because the two pointers are used frequently. But I don't know exactly how to do it. Does anyone know something about it? ___ AVR-GCC-list mailing list

RE: [avr-gcc-list] How to tell avr-gcc not to use some registers in thewhole program?

2009-02-21 Thread Weddington, Eric
-Original Message- From: avr-gcc-list-bounces+eweddington=cso.atmel@nongnu.org [mailto:avr-gcc-list-bounces+eweddington=cso.atmel@nongnu. org] On Behalf Of Lin Nan Sent: Saturday, February 21, 2009 8:41 AM To: avr-gcc-list@nongnu.org Subject: [avr-gcc-list] How to tell

Re: [avr-gcc-list] How to tell avr-gcc not to use some registers in the whole program?

2009-02-21 Thread Georg-Johann Lay
Lin Nan schrieb: Hello, everyone! In my project, I need to bind four registers to two 16 bit pointers because the two pointers are used frequently. But I don't know exactly how to do it. Does anyone know something about it? You can do this by introducing two global register variables like

Re: [avr-gcc-list] How to tell avr-gcc not to use some registers in the whole program?

2009-02-21 Thread Parthasaradhi Nayani
--- On Sun, 2/22/09, Georg-Johann Lay a...@gjlay.de wrote: You can do this by introducing two global register variables like register foo_t * pfoo asm (r2); Also note the command line option -ffixed-2 -ffixed-3 that turn R2/R3 into fixed registers (in contrast to R2/R3 beeing