C problem...se megethos domhs
John Tsiombikas (Nuclear / the Lab)
nuclear at siggraph.org
Sat Jan 24 22:18:26 EET 2004
Aggelos Economopoulos wrote:
> Gia poio logo to -fpack-struct einai pio portable apo to
>
> /* FIXME: need to check for specific gcc version */
> #ifdef _GNUC_
> #define attr_packed __attribute__((packed))
> #else
> #define attr_packed
> #endif /* _GNUC_ */
>
den eipa oti to ena einai pio portable apo to allo, anaferomouna kai sta dyo,
ego de tha xrisimopoiousa kanena apo ta dyo (see next part).
>
>>Kai genikos anti na kaneis dump ena struct sto disko, einai poly
>>kalyteri idea na organoseis kapos ena fileformat. opote to packing ton
>>structs kai alla tetoia den einai kan issue.
>
>
> To "na organoseis kapos ena fileformat" stereitai periexomenou.
> Mhpws mporeis na to diatupwseis kalutera?
tora den katalabes ontos ti eipa i exeis oreksi gia koubenta?
einai eleino na kaneis memory dump se arxeio, kai profanos mi efarmosimo se
polles periptoseis (px an to structure sou exei pointers, dynamically allocated
members klp), pio anthropini methodos einai na organoseis ena file structure
analoga me ta dedomena sou kai na exeis mia synartisi pou diabazei apo to
arxeio, kai mia na grafei sto arxeio.
-- Nuclear / the Lab --
More information about the Linux-greek-users
mailing list