From: NAKAMULA K. 'Cat-Hands' <na...@hs...> - 2003-02-26 07:40:27
|
Hello, Bonjour, Guten Tag, Buongiorno. Please teach me how I can stop generating 'DSEG' & 'OSEG'. I use sdcc with 'large model', because I thought it does not generate DSEG. But 'large model' generates DSEG in 'internal ram' as the following 'Link F= ile'. (named _XXX_slocx_1_0) Does anyone know the way to prevent from genarating variables in DSEG ? Or may program is too large to fit ? Merci, Danke, Grazie. Thank you. Best regards, +---------------------------------------------------+ | NAKAMULA, Kimitoshi | | Sect. Chief Engineer / Hagiwara Sys-Com Co., LTD. | | 2-4-3 Nishiki,Naka-ku,Nagoya,Aichi 460-0003 Japan | | e-mail:na...@hs... | +---------------------------------------------------+ *** I will take a day off on July X 2003 to go on a voyage. *** [Compile Option] -mmcs51 --model-large -c -ID:\xxx\share\sdcc\include [Link File] cpumain.rel memmap.rel ... VENDOR.rel DATA.rel -k D:\xxx\share\sdcc\lib\large -l libsdcc -l libint -l liblong -l libfloat -j -e [MAP FILE] Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ =2E .ABS. 0000 0000 =3D 0. bytes (ABS,OVR= ) Value Global -------- -------------------------------- 0000 l_BSEG 0000 l_BSEG_BYTES 0000 l_HOME 0000 l_ISEG 0000 l_REG_BANK_2 0000 l_REG_BANK_3 0000 l__CODE 0000 s_BSEG 0000 s_CSEG 0000 s_REG_BANK_0 0000 s_XSEG 0000 s__CODE 0001 l_SSEG 0003 l_GSFINAL 0008 l_REG_BANK_0 0008 l_REG_BANK_1 0008 s_REG_BANK_1 000E l_OSEG 0010 s_DSEG 0010 s_REG_BANK_2 0018 s_REG_BANK_3 0020 s_BSEG_BYTES 0039 l_XINIT 0039 l_XISEG 003C l_GSINIT 0088 l_DSEG 0098 s_OSEG 00A6 s_SSEG 00A7 s_ISEG 26C6 l_XSEG 26C6 s_XISEG 98CE l_CSEG 98CE s_GSINIT 990A s_GSFINAL 990D s_HOME 990D s_XINIT E000 _CONTR E001 _ADDRR E002 _ACCCR E003 _ACCER E004 _USBFR E005 _MEDFR E006 _DMACR E007 _DMACE E008 _INTRR E010 _RegBuffer E100 _buffer E310 _redun F000 _i2creg Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ _CODE 0000 0000 =3D 0. bytes (REL,CON) Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ REG_BANK_0 0000 0008 =3D 8. bytes (REL,OVR) Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ REG_BANK_1 0008 0008 =3D 8. bytes (REL,OVR) Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ REG_BANK_2 0010 0000 =3D 0. bytes (REL,OVR) Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ REG_BANK_3 0018 0000 =3D 0. bytes (REL,OVR) Hexadecimal Area Addr Size Decimal Bits (Attributes) -------------------------------- ---- ---- ------- ----- ------------ BSEG 0000 0000 =3D 0. bits (REL,CON,B= IT) Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ BSEG_BYTES 0020 0000 =3D 0. bytes (REL,CON) Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ DSEG 0010 0088 =3D 136. bytes (REL,CON) Value Global -------- -------------------------------- 0010 _UsbMassProtocolCheck_sloc0_1_0 0014 _RequestSense_COMMAND_sloc0_1_0 ---- ----- 008C _SetRedun_Data_sloc0_1_0 008E _SetRedun_Data_sloc1_1_0 0091 _GetDiscriptor_sloc0_1_0 0093 _ControlRead_sloc0_1_0 0095 _SSFDC_COMMAND_sloc0_1_0 Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ OSEG 0098 000E =3D 14. bytes (REL,OVR) Value Global -------- -------------------------------- 0098 _BlukIn_sloc0_1_0 0098 _CheckMediaId_sloc0_1_0 0098 _MakeRequestSenseData_sloc0_1_0 ---- --------------- 009D _correct_data_sloc3_1_0 00A1 _correct_data_sloc4_1_0 00A4 _correct_data_sloc5_1_0 Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ SSEG 00A6 0001 =3D 1. bytes (REL,CON) Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ ISEG 00A7 0000 =3D 0. bytes (REL,CON) Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ XSEG 0000 26C6 =3D 9926. bytes (REL,CON,X= DATA) Value Global -------- -------------------------------- 0D:0002 _TIMEUP 0D:0004 _SUSPEND_WAIT 0D:0006 _TestUnitReady_seq 0D:0008 _bResetRequest 0D:0009 _bSuspendRequest 0D:000A _bResetType -- ---- -------- 0D:2695 _SSFDC_COMMAND_SecAddr_1_1 0D:2696 _SSFDC_COMMAND_Tr_len_1_1 0D:269A _SSFDC_COMMAND_Tr_len_4B_1_1 0D:269E __divuint_PARM_2 0D:26A0 __divuint_a_1_1 0D:26A2 __divuint_reste_1_1 0D:26A4 __divuint_count_1_1 0D:26A5 __modulong_PARM_2 0D:26A9 __modulong_a_1_1 0D:26AD __modulong_count_1_1 0D:26AE __divulong_PARM_2 0D:26B2 __divulong_a_1_1 0D:26B6 __divulong_reste_1_1 0D:26BA __divulong_count_1_1 0D:26BB __muluint_PARM_2 0D:26BD __mulsint_PARM_2 0D:26BF __mulsint_a_1_1 0D:26C1 __moduint_PARM_2 0D:26C3 __moduint_a_1_1 0D:26C5 __moduint_count_1_1 Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ XISEG 26C6 0039 =3D 57. bytes (REL,CON,X= DATA) Value Global -------- -------------------------------- 0D:26C6 _int0 0D:26C8 _timercnt 0D:26C9 _Timer_15Sec 0D:26CB _DATA_BLOCK_LENGTH_0 0D:26CD _DATA_BLOCK_LENGTH_1 0D:26CF _TypeReadToc Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ CSEG 0000 98CE =3D 39118. bytes (REL,CON,C= ODE) Value Global -------- -------------------------------- 0C:0038 _main 0C:0096 _BitMap 0C:009E _InitializePorts 0C:00B7 _InterruptEnableSetting -- ---- -------- 0C:9462 _SCSI_PDT_NAME1 0C:946F _SCSI_VER_NUM 0C:9474 __divuint 0C:9516 __modulong 0C:964F __divulong 0C:976F __muluint 0C:978F __mulsint 0C:97BD __sdcc_external_startup 0C:97C1 __gptrput 0C:97F6 __moduint 0C:98A3 __gptrget Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ GSINIT 98CE 003C =3D 60. bytes (REL,CON,C= ODE) Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ GSFINAL 990A 0003 =3D 3. bytes (REL,CON,C= ODE) Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ HOME 990D 0000 =3D 0. bytes (REL,CON,C= ODE) Hexadecimal Area Addr Size Decimal Bytes (Attributes) -------------------------------- ---- ---- ------- ----- ------------ XINIT 990D 0039 =3D 57. bytes (REL,CON,C= ODE) =0CASxxxx Linker V01.70 + NoICE + SDCC Feb 1999, page 1. Files Linked [ module(s) ] cpumain.rel =20 memmap.rel =20 CpuInitial.rel =20 ecc.rel =20 USBMASS.rel =20 DEVICE.rel =20 HWCNT.rel =20 INITSM.rel =20 INT.rel =20 INTERPT.rel =20 RWDATA.rel =20 SCSI.rel =20 SENSETBL.rel =20 SM.rel =20 SUB.rel =20 USBINIT.rel =20 USBSTAD.rel =20 VENDOR.rel =20 DATA.rel =20 Libraries Linked [ object file ] D:\PROGRA~1\SDCC\share\sdcc\lib\large/libint.lib [ _divuint ] D:\PROGRA~1\SDCC\share\sdcc\lib\large/liblong.lib [ _modulong.rel ] D:\PROGRA~1\SDCC\share\sdcc\lib\large/liblong.lib [ _divulong.rel ] D:\PROGRA~1\SDCC\share\sdcc\lib\large/libint.lib [ _mulint ] D:\PROGRA~1\SDCC\share\sdcc\lib\large/libsdcc.lib [ _startup ] D:\PROGRA~1\SDCC\share\sdcc\lib\large/libsdcc.lib [ _gptrput ] D:\PROGRA~1\SDCC\share\sdcc\lib\large/libint.lib [ _moduint ] D:\PROGRA~1\SDCC\share\sdcc\lib\large/libsdcc.lib [ _gptrget ] =0C |