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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/08/05 17:25
Read: times


 
#100827 - sorry for the double entires
Responding to: ???'s previous message
Hello Erik,

Sorry for the second entry, I posted one and when I didnt see the entry, I posted it again.

Here is my final attempt, if it fails; will stick to Keil.

Here I am with One simple program:

I am just surprized by the output generated by SDCC as compared to Keil. Can someone tell what's happening?

Abishek: I tried the section 3.11.1, but no results. Sorry, I should have mentioned it in the previous post.

Output of Keil and SDCC compared below:


keil startup.a51
-------------------------------------
$NOMOD51
NAME ?C_STARTUP

EXTRN CODE (?C_START)
PUBLIC ?C_STARTUP

CSEG AT 0
?C_STARTUP: LJMP ?C_START

END
-------------------------------------

keil main.c
-------------------------------------
#include <AT89X52.H>

void main()
{
P0 = 0xaa;
while(1);
}
-------------------------------------

keil main.hex
-------------------------------------
:03000000020003F8
:050003007580AA80FEDB
:00000001FF
-------------------------------------



SDCC main.c
-------------------------------------------
#include "8052.H"

void main (void)
{
P0 = 0xaa;
while(1);

}
-------------------------------------------


SDCC main.hex
-------------------------------------------
:03000000020003F8
:07005C00750080750181753C
:06006300028275038375A3
:060069000487750588758F
:06006F00068975078A7581
:06007500088B75098C7573
:06007B000A8D750B907563
:060081000C98750D997545
:060087000EA0750FA87524
:06008D0010B07511B875FA
:0600930012C87513C975C7
:0600990014CA7515CB75B9
:06009F0016CC7517CD75AB
:0600A50018D07519E0758A
:0500AB001AF0D21BD287
:0400B0001CD21DD26F
:0400B4001ED21FD267
:0400B80020D221D25F
:0400BC0022D223D257
:0400C00024D225D24F
:0400C40026D227D247
:0400C80028D229D23F
:0400CC002AD22BD237
:0400D0002CD22DD22F
:0400D4002ED22FD227
:0400D80030D231D21F
:0400DC0032D233D217
:0400E00034D235D20F
:0400E40036D237D207
:0400E80038D239D2FF
:0400EC003AD23BD2F7
:0400F0003CD23DD2EF
:0400F4003ED23FD2E7
:0400F80040D241D2DF
:0400FC0042D243D2D7
:0401000044D245D2CE
:0401040046D247D2C6
:0401080048D249D2BE
:04010C004AD24BD2B6
:040110004CD24DD2AE
:040114004ED24FD2A6
:0401180050D251D29E
:04011C0052D253D296
:0401200054D255D28E
:0401240056D257D286
:0401280058D259D27E
:04012C005AD25BD276
:040130005CD25DD26E
:040134005ED25FD266
:0401380060D261D25E
:04013C0062D263D256
:0401400064D265D24E
:0401440066D267D246
:0401480068D269D23E
:04014C006AD26BD236
:040150006CD26DD22E
:040154006ED26FD226
:0301580070D271F1
:03015B0002015E40
:05015E0012016380FEA8
:030163007500AA7A
:0201660080FE19
:06003200E478FFF6D8FDA2
:080010007900E94400601B7A4D
:050018000090016C786E
:03001D000075A0CB
:0A00200000E493F2A308B800020503
:08002A00A0D9F4DAF275A0FF81
:080038007800E84400600A7939
:030040000075A0A8
:0600430000E4F309D8FC03
:080049007800E84400600C7926
:0B00510000900000E4F0A3D8FCD9FAF6
:03000300758107FD
:0A000600120168E582600302015E4A
:04016800758200227A
:00000001FF
-------------------------------------------

Regards,
Raj Shetgar


List of 21 messages in thread
TopicAuthorDate
Compatibility - ".LIB" files            01/01/70 00:00      
   Library Files            01/01/70 00:00      
   SDCC.LIB            01/01/70 00:00      
      thanks, but a major hurdle to cross :o(            01/01/70 00:00      
         easy as pie. use "dir" to make a list o            01/01/70 00:00      
            Easier Still            01/01/70 00:00      
               Naah            01/01/70 00:00      
         hard?            01/01/70 00:00      
            downloaded the Setup file :o)            01/01/70 00:00      
               What's the problem?            01/01/70 00:00      
                  edit startup file for SDCC            01/01/70 00:00      
                     same question, same answer as below            01/01/70 00:00      
                     SDCC startup            01/01/70 00:00      
               hex-file?            01/01/70 00:00      
                  edit startup file for SDCC            01/01/70 00:00      
                     same question, same answer as above            01/01/70 00:00      
                        sorry for the double entires            01/01/70 00:00      
                           I can not say for sure, but another comp            01/01/70 00:00      
                           SDCC main.c results            01/01/70 00:00      
                           _sdcc_external_startup()            01/01/70 00:00      
                              exactly!            01/01/70 00:00      

Back to Subject List