[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Structs in program memory.
From: |
Dmitry K. |
Subject: |
Re: [avr-gcc-list] Structs in program memory. |
Date: |
Wed, 28 Apr 2004 15:56:41 +1100 |
User-agent: |
KMail/1.5 |
Hi.
Port of gcc (2.3.3 snapshot 930305) for ADSP-21XX (Analog Devices) has
this feature - additional memory qualifier.
See:
int x; /* in data memory */
int pm x1; /* in program memory */
int dm * pm x2; /* pointer in program memory to data memory */
int foo (void)
{
return x + x1 + *x2;
}
is compiled to:
! END FUNCTION PROLOGUE: foo
i6=^x1_;
ax1=dm(x_);
ay1=pm(i6,m6);
i6=^x2_;
ar=ax1+ay1,mx1=pm(i6,m6); !!PRLL-2
i2=mx1;
ay1=dm(i2,m2);
ar=ar+ay1;
! FUNCTION EPILOGUE: foo
Tarball may be find on `ftp.analog.com/pub' (I do not remember
exactly).
Best regards.
- Re: [avr-gcc-list] Structs in program memory., (continued)
- Re: [avr-gcc-list] Structs in program memory., David Brown, 2004/04/28
- Re: [avr-gcc-list] Structs in program memory., E. Weddington, 2004/04/28
- Re: [avr-gcc-list] Structs in program memory., Svein E. Seldal, 2004/04/28
- Re: [avr-gcc-list] Structs in program memory., Svein E. Seldal, 2004/04/27
- Re: [avr-gcc-list] Structs in program memory., Christopher X. Candreva, 2004/04/27
- Re: [avr-gcc-list] Structs in program memory., Joerg Wunsch, 2004/04/27
- Re: [avr-gcc-list] Structs in program memory., Graham Davies, 2004/04/27
- Re: [avr-gcc-list] Structs in program memory., E. Weddington, 2004/04/27
- Re: [avr-gcc-list] Structs in program memory.,
Dmitry K. <=
- Re: [avr-gcc-list] Structs in program memory., Svein E. Seldal, 2004/04/28