From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,534302f766ee3d8e X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2000-09-25 19:20:54 PST Path: supernews.google.com!sn-xit-02!sn-east!supernews.com!news-feed.riddles.org.uk!newsfeed.direct.ca!look.ca!nntp.cs.ubc.ca!newsfeed.stanford.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!news1 From: ttk@larva.flyingcroc.NO.SPAM.PLEASE.net Newsgroups: comp.os.linux.alpha Subject: Re: DEC compilers available for Linux? Date: 26 Sep 2000 01:20:25 GMT Organization: Subtle, but there Message-ID: <8qotkp0vjj@news1.newsguy.com> References: <39C7AD53.EEBDBBAC@us.ibm.com> NNTP-Posting-Host: p-387.newsdawg.com Xref: supernews.google.com comp.os.linux.alpha:628 I thought this might be of interest to some in this newsgroup, since you were tossing around sizeof-reporting code: http://www.andansbutt.org/ttk/stdtypes/stdtypes101.tar It's an application that runs on your host system and generates an "stdtypes.h" file that defines a bunch of known-sized types and other potentially useful system-dependent information. I use it quite a lot to generate platform-independent code more easily. Adding it to an application distribution can be as easy as adding "stdtypes.h" to its Makefile's "all" rule, and then adding a rule: stdtypes.h: stdtypes.c $(CC) -o stdtypes stdtypes.c $(LIB) ./stdtypes (add whatever trimming your Makefile needs, of course) -- TTK -- "Live and Learn; Die and Learn Faster" (motto of the Lynbrook Historical Simulations club) Technical and RKBA documents at: http://larva.flyingcroc.net/~ttk/