Sign in Join

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

Mailing lists / fpc-pascal / 2011-12

GCC attributes when binding code

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

ik

Hello,

I found the following code:

/* this is a special 64bit data type that is 8-byte aligned */ #define aligned_u64 u_int64_t __attribute__((aligned(8)))

And few other __attribute__ based code as well. Some of them are useless for Pascal at all,
but changing alignment for a variable type is something that is useful.

My question is, is there something new in FPC that allow me to do something like that ?

Thanks,
Ido