[fpc-pascal] Cache-line alignment for records

Ralf Quint freedos.la at gmail.com
Thu Mar 30 01:16:45 CEST 2023


On 3/29/2023 2:38 PM, Ched via fpc-pascal wrote:
> Hello,
>
> Ok for the records for internal calculations. But sometimes, records 
> are used for reading/writing structured files. Does "packed" in 
> "packed array" and "packed record" always forbid the compiler to play 
> with alignments ? 

If that record/array is specifically defined as "packed", then yes, of 
course. However, arrays/records that are no so defined should be aligned...


Ralf




More information about the fpc-pascal mailing list