??? 03/02/11 08:22 Read: times |
#181381 - Thanks, it's working ! Responding to: ???'s previous message |
@ Per Westermark,
Thanks, I did the same, and it's working. In our code, we are using large structure arrays. The members are of unsigned char and unsigned int type, containing some arrays also. It is as below: We are following ascending order of size of members. typedef struct extention_data { unsigned char dgt_cnt; unsigned char ring_type; unsigned char state; unsigned char off_hook; unsigned char ring_ev; unsigned char ring_feed; unsigned char dgt_dialed; unsigned char dgt_send; unsigned char id; unsigned char flash; unsigned char group_id; unsigned char fg_index; unsigned char alaram; unsigned char csn_index; unsigned char csd_index; unsigned char dynamic_lock; unsigned char tone_type; unsigned char t_lid; unsigned char barge; unsigned char barge_lid; unsigned char lcr; unsigned char forwarded; unsigned char pg_id; unsigned char res; unsigned char programming; unsigned char hot_line; unsigned char hod; unsigned char how_no; unsigned char service_no; unsigned char guest_group; unsigned char check_in_out; unsigned char temp_check_in_out; unsigned char check_in_id; unsigned char pulse_tone_dial; unsigned char temp; unsigned char trans_from; unsigned char dosa_enable; unsigned char type; unsigned char route_id; unsigned char dtmf_id; unsigned char cd_l_index; unsigned char timer; unsigned char flashed; unsigned char flag_set; unsigned char dosaDialing; unsigned char active; unsigned char trans_lid; unsigned char cb_no; unsigned char cwt_feed; unsigned char temp_barge_privacy; unsigned char direct_pnt_dialing; unsigned char dl_mins; unsigned char dl_hrs; unsigned char dl_open_day; unsigned char dl_close_day; unsigned char dl_open_mins; unsigned char dl_cnt_down; unsigned char auto_shut_dl; unsigned char dl_onoff; unsigned char park_ring; unsigned char deny_ol_fea; unsigned char park_lid; unsigned char park_no; unsigned char extr_hold; unsigned char rt_to_dss; unsigned char user_name_present; unsigned char delay_timer; unsigned char call_transferred; unsigned int fh_timer; unsigned int password; unsigned int r_index; unsigned char call_privacy[3]; unsigned char how[16]; unsigned char dgt_buf[35]; }EXTN_DATA; EXTN_DATA xdata edata[96]; For the arrays which are unaligned, we had manually added padding members to align the structures to 2-power byte boundaries in sizes of 4,8,16,32,64,128. Q. Is there any order to be followed in creating the members of the structure template? There are many structure arrays in our code, adding upto 60K of xdata. Thanks in advance. |
Topic | Author | Date |
Multiple public definitions in code banking | 01/01/70 00:00 | |
single const byte in code | 01/01/70 00:00 | |
The meaning of 'const' in ANSI 'C' | 01/01/70 00:00 | |
Yes | 01/01/70 00:00 | |
Keil C51 isn't a C++ compiler | 01/01/70 00:00 | |
Coding Standard Rules - Netrino | 01/01/70 00:00 | |
Rule #2 is a bit broken or at least incompletely formulated | 01/01/70 00:00 | |
issue with #define usage | 01/01/70 00:00 | |
extern const code declaration | 01/01/70 00:00 | |
Insufficient detail | 01/01/70 00:00 | |
Conceptually wrong | 01/01/70 00:00 | |
Thanks, it's working ! | 01/01/70 00:00 | |
Why? | 01/01/70 00:00 | |
correction | 01/01/70 00:00 | |
Fundamental 'C' programming error! | 01/01/70 00:00 |