CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

start address of constant array

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
yusufozk



Joined: 14 Nov 2007
Posts: 2

View user's profile Send private message

start address of constant array
PostPosted: Wed Nov 14, 2007 10:06 am     Reply with quote

How can I get the starting address of a constant array?
Ttelmah
Guest







PostPosted: Wed Nov 14, 2007 10:40 am     Reply with quote

A constant array, is stored as a program, followed by the data.
The 'label_address' function, returns the address of the actual data, which can be accessed using the read_program_memory function (if the chip supports this).
On the latest compilers, the array name, returns the same data.

Best Wishes
yusufozk



Joined: 14 Nov 2007
Posts: 2

View user's profile Send private message

PostPosted: Thu Nov 15, 2007 6:10 am     Reply with quote

Thanks!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group