delorie.com/archives/browse.cgi | search |
From: | "yonghlee" <yonghlee AT keysoft DOT lgec DOT co DOT kr> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | "word aligned structure" compiling option |
Lines: | 22 |
Message-ID: | <_ZJI1.392$XU4.1621018@news.bora.net> |
Date: | Mon, 07 Sep 1998 05:15:38 GMT |
NNTP-Posting-Host: | 150.150.41.64 |
NNTP-Posting-Date: | Mon, 07 Sep 1998 14:15:38 KDT |
Organization: | Dacom |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Dear Sir I want to know the gcc compiler option for word aligned structure option Here is my structure example; typedef struct my_APPstr { UC A; UC B[2]; UC C[2]; } Pmy_APPstr; I want the "sizeof(Pmy_APPstr)" as 6 . When I used Borland C with "word align option", it returned with size "6" And I don't want change my source code for target compatibility as described in DJGPP FAQ list.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |