C problem...se megethos domhs

V13 v13 at priest.com
Sat Jan 24 22:30:28 EET 2004


On Saturday 24 January 2004 19:30, John Tsiombikas (Nuclear / the Lab) wrote:
> Aggelos Economopoulos wrote:
> > ii) uparxei to option '-fpack-struct' (or something), alla epeidh ta
> > perissotera programmata 8eloun apla na einai packed ta structs pou
> > grafontai/diabazontai sto disko/diktuo, uparxei to
> >
> > struct a {
> > 	char c;
> > 	int i;
> > } __attribute__((packed));
>
> Alla bebea afou to anothen den einai C, kalo tha einai an se endiaferei to
> portability tou kodika (kathos kai to readability) kati tetoia na min ta
> xrisimopoieis.

Basika, einai ligo kalytero apo to na to pernas san parametro sto gcc mias kai 
periorizeis to problima se sygkekriman structs ta opoia argotera (otan tha 
skeyteis to portability) anixneyontai amesos...

Alloste otan stirizesai se sygkekrimeni esoteriki domh toy struct tote den 
mporeis na milas gia portability... An thymamai kala to gcc apo tin ekdosi 
3.3 kai meta alazei kai tin seira mesa sta structs by default, xoris kapoia 
extra parametro...

> -- Nuclear / the Lab --
<<V13>>




More information about the Linux-greek-users mailing list