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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/16/10 15:35
Modified:
  05/16/10 15:38

Read: times


 
#175937 - why would that be impossible?
Responding to: ???'s previous message
Erik Malund said:
The size of the .cdb seems right, but a .omf (the one with no extension from SDCC) that is smaller than the .hex (.ihx from SDCC) is impossible.

Why would that be impossible? How did you come to that conclusion? What makes you believe it is not "full"?

OMF is a binary format, whereas intelhex, as you know, is ASCII, inflating the size significantly. I assume a pure binary of your experiment would come out somewhere around 2-3kB.

.cdb is the native SDCC debug format, which is ASCII and rather sparse.

Erik Malund said:
why it comes out w/o extension

Well, a design choice... :-) How do you perform the compilation/linking cycle? Do you use a makefile? Or .bat? You could add a rename command to fix this after the compilation finishes into both.

I presume you need the omf to be read into some other tool, the SiLabs stuff, I guess? Isn't there some guide to that tool how to use it with SDCC?


Erik Malund said:
and why .hex is .ihx

Another design choice... Maybe to push you to try to reformat it to a more conventional style before you use it? As it is after linking, the addresses of its lines are not in consecutive order, and that is known to throw apart certain programming tools. There's an utility called packihx included with SDCC, it is a common practice to perform something like
packihx main.ihx > main.hex
after compilation.

A few months ago I reported here on a small project, a "snake" game on a 16x2 LCD module, which was written in SDCC. You might perhaps look at its makefile for some inspiration - nothing special there, though.

Erik Malund said:
PS how can something with such a major defect even be considered a release. Who does the testing?


Most of the testing - other than the developers testing themselves the changes they've just made - consists of an automated daily compilation and simulation run of a suite of small "regression test" programs.

And, there is no formal process to assess the expectations of potential users, AFAIK. It would be hard to do that, given the number of developers and given that most (all) of them do this as a hobby, besides regular job. AFAIK there are no full-time-paid developers on SDCC nor massive corporate funding as gcc enjoys for example.

I understand your frustration, but believe me that most SDCC users are used to/expect more spartan treatment than those who are used to the commercial tools. So they don't complain; and it also means that the developers don't know what would be the proper treatment of potential new users, what would they really need to get them started. I am not saying that you get what you payed for, I hate that saying, it is not fair, even if there's some truth in it.

Maybe if you would write more on your particular setup and what the application is all about and how exactly do you intend to achieve your goals etc., others might come up with suggestions and, who knows, maybe even improved tools.

JW


List of 51 messages in thread
TopicAuthorDate
SDCC debug            01/01/70 00:00      
   version            01/01/70 00:00      
      2.9.0 #5416            01/01/70 00:00      
         humm            01/01/70 00:00      
            files            01/01/70 00:00      
               General Comments            01/01/70 00:00      
                  stating the problem            01/01/70 00:00      
               why would that be impossible?            01/01/70 00:00      
                  omf smaller than hex            01/01/70 00:00      
                     link, please            01/01/70 00:00      
                        links            01/01/70 00:00      
   played with the commandline options and ...            01/01/70 00:00      
      What do you mean by "blows in startup"?            01/01/70 00:00      
         goes to undefined memory and never reaches main            01/01/70 00:00      
            try one of these options            01/01/70 00:00      
               Thanks, It'll be a day or two            01/01/70 00:00      
                  SiLabs or not            01/01/70 00:00      
                     yes, SILabs            01/01/70 00:00      
                        breakpoint            01/01/70 00:00      
   found a cause, but ....            01/01/70 00:00      
      disassembly            01/01/70 00:00      
      not having _sdcc_external_startup            01/01/70 00:00      
      seems you feed SDCC with a Keil specific header file            01/01/70 00:00      
         false entry, sorry            01/01/70 00:00      
         reply            01/01/70 00:00      
            legal C reused by Keil            01/01/70 00:00      
               3 questions            01/01/70 00:00      
                  3 answers            01/01/70 00:00      
                     thnks for 3 answers and more stuff            01/01/70 00:00      
                        incomplete            01/01/70 00:00      
               since 'porting' to SDCC ...            01/01/70 00:00      
                  agreed!            01/01/70 00:00      
   neither works, what do I do            01/01/70 00:00      
      no problem at my place            01/01/70 00:00      
   I ma stuck on the next one            01/01/70 00:00      
      strings in C            01/01/70 00:00      
         Thanks, Jan ....            01/01/70 00:00      
            that's the kosher way            01/01/70 00:00      
         No, the string shall fit according to the C standard            01/01/70 00:00      
            indeed            01/01/70 00:00      
      bug found            01/01/70 00:00      
         read again            01/01/70 00:00      
         somehow the SDCC forum did not take my post...            01/01/70 00:00      
            sdcc.exe does return an error status            01/01/70 00:00      
               why would you think that?            01/01/70 00:00      
                  grep etc            01/01/70 00:00      
                     Unix goodies            01/01/70 00:00      
            sdcc forum post visible            01/01/70 00:00      
               what are you doing diffrently?            01/01/70 00:00      
                  DOS bat command gotcha            01/01/70 00:00      
                     Thanks Jan            01/01/70 00:00      

Back to Subject List