Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Code pointer with GCC

2005-11-08 by vineet jain

Hi,
  There are no overlapping memory addresses of RAM and ROM like in 8051. Here the address space is linear. You'll know your memory layout once you look at the datasheet. So if you want to fetch a byte --> use char pointer, 4 bytes use int pointer etc..
If you want the pointer to point a particular address use this :
 
  char *ptr  = (char *) 0x10000;
 
Hence ptr points to memory location 0x10000.
 
Cheers,
Vineet.

Sebastien Jacquemard <sejacquemard@...> wrote:
Hello,
I need to declare a pointer to code with GCC. 
With 8051 and keil PK51 I do this for exemple "char code *p"
How can I do the same thing with GCC (I use GCC with keil IDE) ?

Thanks,
Sebastien




---------------------------------
YAHOO! GROUPS LINKS 


    Visit your group "lpc2000" on the web.
  
    To unsubscribe from this group, send an email to:
 lpc2000-unsubscribe@yahoogroups.com
  
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


---------------------------------



		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  

[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.