I wrote software (for PC and my target micro) to download Intel hex format files. It turns out it's much more efficient of the file is sorted by address. Is there a linker command/directive that forces the lines of the output file to be sorted by address ?
I'm using BL51 BANKED LINKER/LOCATER V6.2.
I think I've seen that the Extended Linker does that ... but would still be interested in a linker directive if it turns out there is some incentive to use the regular linker.
Thank you
The .HEX is designed to allow for sparse and out-of-order output, it significantly simplifies the linker's task and reduces the memory footprint. As such having an option to make your task easier complicates everyone elses task. Either have your tool perform the sorting step as part of loading the file, or use the a binary or object format.
I wrote software (for PC and my target micro) to download Intel hex format files. why are you reinventing the wheel?
I define the product.
The definition is that 1) the PC download software MUST reside inside the custom terminal software I have. 2) The firmware end MUST reside in a location other then what sample software had it located.
Please see: http://www.keil.com/support/docs/2217.htm This should answer your question.