[fpc-pascal] alignment of records
    Sven Barth 
    pascaldragon at googlemail.com
       
    Sat Aug  8 09:30:18 CEST 2015
    
    
  
Am 08.08.2015 00:37 schrieb "Ralf Quint" <freedos.la at gmail.com>:
>
> On 8/6/2015 8:25 PM, Xiangrong Fang wrote:
>>
>> It seems that $packrecord does not work at all.
>
> I always explicitly use PACKED Record as in
>
> Type ifmap = PACKED Record
>                       mem_start: dword;
>                       mem_end: dword;
>                       base_addr: word;
>                       irq: byte;
>                       dma: byte;
>                       port: byte;
>              end;
>
> and at least in/up to FPC 2.6.4, this works for me just fine
This depends however on the code you're interfacing with. Also the record
you mentioned as an example shouldn't differ with and without packed
anyway...
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150808/232e6814/attachment.html>
    
    
More information about the fpc-pascal
mailing list