Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2025-12

Note message scanner_n_alignment_larger_than_max generates many messages for 8 bit AVR

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Christo Crause

I have noticed that recently the compiler nowadays issues many notes about variable alignment, for example: test.pp(6,3) Note: Variable "A" has align directive larger than system maximum alignment for variables.

This is quite annoying for the AVR architecture, which uses byte aligned data access. This means that for any variable larger than 1 byte in size this message is generated. Would it make sense to suppress this message (and the similar message for local variable alignment) for 8 bit targets? Or maybe only show the note when the memory alignment is explicitly specified by the user? Or am I missing some Pascal data alignment rule that gets violated, hence the requirement of informing the user?

Best regards,
Christo

Reply by email