Other HI-TECH Compilers & Products >> Other HI-TECH Compilers & Products

Pages: 1
pgardner



Reged: May 31 2005
Posts: 2
Holtek compiler
      #31024 - Wed Dec 05 2007 10:01 AM

Does anybody know the overhead required by the startup code when using the Holtek complier? Some people here(assembler fans) are trying to convince the boss that the startup code needs 32 bytes of RAM and an unknown but huge amount of code space!

I am convinced this cannot be true but need to find figures that I can present in a report.

Thanks

Paul


Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3210
Loc: Boulder, Colorado U.S.A.
Re: Holtek compiler [Re: pgardner]
      #31029 - Wed Dec 05 2007 11:39 AM

Quote:

Some people here(assembler fans) are trying to convince the boss that the startup code needs 32 bytes of RAM and an unknown but huge amount of code space!



That suggests that they already have the compiler (a demo version?), so they should be able to show you how they arrived at their conclusion.


Post Extras: Print Post   Remind Me!   Notify Moderator  
pgardner



Reged: May 31 2005
Posts: 2
Re: Holtek compiler [Re: Dan Henry]
      #31031 - Wed Dec 05 2007 11:55 AM

They say they read it somewhere but cannot remember where!!!

Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3210
Loc: Boulder, Colorado U.S.A.
Re: Holtek compiler [Re: pgardner]
      #31035 - Wed Dec 05 2007 02:11 PM

Quote:

... the startup code needs 32 bytes of RAM and an unknown but huge amount of code space!



I cannot speak with authority since I do not yet use the compiler for Holtek, but I would be surprised if any startup RAM usage is a permanent allocation and not available to the application after startup. The code space that runtime startup uses can include a loop to clear .bss and code plus initializer values for .data. Unless you've got a "huge" amount of variables to initialize, I wouldn't expect .data initialization to be "huge". I could be wrong.

Of course you could determine most of this yourself by downloading the free but time-limited demo version.


Post Extras: Print Post   Remind Me!   Notify Moderator  
luckyAdministrator
HI-TECH team member
*****

Reged: Oct 06 2003
Posts: 1014
Loc: Brisbane, Australia
Re: Holtek compiler [Re: pgardner]
      #31038 - Wed Dec 05 2007 04:10 PM

Quote:

Does anybody know the overhead required by the startup code when using the Holtek complier?




Most (all?) other compilers generally have canned start-up code which include all routines to clear & initialize data, configure the processor, etc... which can be quite large. A new technology we developed for our compilers (included in our Holtek compiler) allows the compiler to write custom start-up code. Our compiler will analyze the program being compiled and "write" custom code for exactly what that program needs. Since it knows exactly how much data needs clearing/initializing it will use an optimal sequence of instructions to do so. For example, for clearing (zeroing) data, if there are is a lot to do it will probably create a loop. On the other hand, if there are only a few bytes, it may simply put down a sequence of clear instructions. In a minimal case there may be no start-up code at all and the main function is simply linked at the reset vector.

--------------------
Matt Luckman
HI-TECH Software


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:  ndouglas, jtemples, Dan Henry, garth, Andrew L, Ryan, mikerj 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 1836

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5