[fpc-pascal] Including binary data making easy

Sven Barth pascaldragon at googlemail.com
Tue Aug 28 19:44:49 CEST 2012


On 28.08.2012 09:10, Jonas Maebe wrote:
>
> On 28 Aug 2012, at 09:03, Sven Barth wrote:
>
>> On 27.08.2012 15:33, Rainer Stratmann wrote:
>>> Am Monday 23 March 2009 15:51:24 schrieb Jonas Maebe:
>>>> Rainer Stratmann wrote on ma, 23 mrt 2009:
>>>>> Would this be possible?
>>>>>
>>>>> // get access to the data of file.dat
>>>>> // have 1 executable file with containing all the data
>>>>>
>>>>> {$ir file.dat mydata} // include resource or similar
>>>>>
>>>>> // fpc compiler makes this
>>>>> const
>>>>>   mydata : array[ 0 .. 4 ] of byte =
>>>>>   ($45,$44,$63,$76,$55); // file data
>>>>
>>>> FPC includes a data2inc utility that you can use for this.
>>>
>>> http://sourceware.org/binutils/docs/as/Incbin.html#Incbin
>>> http://sourceware.org/binutils/docs/as
>>>
>>
>> @Jonas: Is it just me or am I missing some mails here?
>
> It's simply that some people are suddenly replying to mails from 23 March 2009 for some reason.

Ah ha! That explains it. I wasn't a list member back then. :)

(I should have looked at the date of the quote from you...)

Regards,
Sven




More information about the fpc-pascal mailing list