tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] HELP: __attribute__ ((packed)) confusion


From: Christopher Dobbs
Subject: [Tinycc-devel] HELP: __attribute__ ((packed)) confusion
Date: Wed, 09 Feb 2005 14:03:32 -0800
User-agent: Mozilla Thunderbird 0.5 (X11/20040208)

I need __attribute__ ((packed)) to work.
The docs say that it does.
Here is a snippit of code that I am using:

#define PACKED __attribute__ ((packed))

typedef struct {
 ...
} PACKED MyStruct_;

The structure is to be 512 bytes in size, but comes out 516.
If I recompile using gcc, all is how it should be.

I would rather use tcc, but this and a few other projects require packed
structures.

Thanks in advance for any help.

--
Christopher Dobbs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]