Frank Heckenbach wrote:
Waldek Hebisch wrote:
Also variables and pointer types used to access hardware should be marked `volatile', but I just noticed that currently GPC does not allow this...
It does, but as an "attribute" (in order to reduce syntax pollution for a very rarely used feature).
program VideoMemory; type VolatileChar = char attribute (volatile); VideoMemory = ^VolatileChar;
<rest of the program snipped>
Hmm, when I compile this program I see:
vol.pas:3: warning: 'volatile' attribute directive ignored
also, looking at the gpc source I had impression that we should add proper handling of 'volatile' attribute.