delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/30/11:49:32

Message-ID: <5BF60CD649EDD411A04600B0D049F53A5441C8@hydmail02.hyd.wilco-int.com>
From: Prashant Ramachandra <rprash AT wilco-int DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: RE: Padding structures to dword boundaries
Date: Mon, 30 Apr 2001 18:47:57 +0530
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Reply-To: djgpp AT delorie DOT com

On Monday, April 30, 2001 2:02 PM,
Lee_Westlake AT TaliadonSystems DOT fsbusiness DOT co DOT uk
[SMTP:Lee_Westlake AT TaliadonSystems DOT fsbusiness DOT co DOT uk] wrote:
| Does anyone know how to prevent djgpp from padding structures to
| dword
| boundaries?
| 

Use __attribute__ ((packed)) like this:

struct {
	int x __attribute__ ((packed));
...
} something;

--
Prashant TR <tr AT midpec DOT com>
Web: http://www.midpec.com/

The greatest thing is not getting to the top, but remaining onself in the
process.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019