dl06

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Nov 19 06:12:25 UTC 2019


On 19/11/2019 02:04, Chris Johns wrote:
> On 19/11/19 4:33 am, Jonathan Brandmeyer wrote:
>> On Mon, Nov 18, 2019 at 1:12 AM Sebastian Huber
>> <sebastian.huber at embedded-brains.de <mailto:sebastian.huber at embedded-brains.de>>
>> wrote:
>>
>>      On 18/11/2019 08:59, Chris Johns wrote:
>>      >
>>
>>      >
>>      > Converting to C is a broken path IMO. it does not scale.
>>
>>      I would convert the individual object files with bin2c and load them
>>      with IMFS_make_linfile().
>>
>>
>> We stopped using rtems-bin2c in our project, because the performance was so poor
>> for larger files.  Both bin2c and gcc were very slow.
> 
> I have experienced this as well.

Yes, the rtems-bin2c approach is only suitable for small files. For the 
RTEMS test suite it is fine.

> 
>>    We've replaced that
>> workflow with something based on GNU AS `.incbin` instead, which is fast enough
>> to be unnoticeable.
> 
> I have used objcopy to copy a binary format file to the support ELF object file.
> Doing this scales well and is almost fully portable across architectures, I
> think the i386 needs a special option.

The problem with using objcopy is that you need to know the output 
target (-O option). The output target may depend on the GCC multilib 
(32-bit vs. 64 bit, big-endian vs. little-endian).

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the devel mailing list