Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/14/00 13:42
Read: times


 
#4383 - code or xdata spec
Hi, everione,

Not urgent! Keil_C51_v550. Sometimes I placed string constants with
"code" specifier instead of xdata, and such way saves code size a
little. Now, I have an global array of structure type as following

struct synthesis_musics_struct {
unsigned char tone_freq[33];
unsigned char tone_durn[33];
unsigned char max_notes; };
{#pragma OE DB SB CD OR NOIP MODDP2 SMALL OT(6, SPEED)}
Since I do not need to change the data contained at the array as
variables, it is initialized while the array declaration with
specifier "code" to exclude init routine used in case of xdata spec.
But size of code is increased. Why? What's my mistake, where I am
getting aditional code space from.


Thanks.

Best regards,
Oleg

List of 6 messages in thread
TopicAuthorDate
code or xdata spec            01/01/70 00:00      
RE: code or xdata spec            01/01/70 00:00      
RE: code or xdata spec            01/01/70 00:00      
RE: code or xdata spec            01/01/70 00:00      
RE: code or xdata spec            01/01/70 00:00      
RE: code or xdata spec            01/01/70 00:00      

Back to Subject List