Article View: comp.sys.amiga.tech
Article #5160Re: Novice question about Lattice C proto incudes.
From: Bits_of_Magic
Date: Tue, 04 Sep 1990 20:04
Date: Tue, 04 Sep 1990 20:04
16 lines
1170 bytes
1170 bytes
The proto includes do 2 things: 1) Provide library function prototypes, which allow the compiler to do type checking on parameters, and tell it the type of any returned value. Prototyping is now considered de rigueur. 2) Provide function specifications so that the compiler can generate a direct call to the function with parameters in registers, rather than having to call an intermediate routine which puts parameters in registers. If you don't have the appropriate proto include, the intermediate routine method is used. The library function call is made to an address which is an offset from the LibraryBase address returned from an OpenLibrary(). The proto function specications also provide those offsets. Nicky Robinson <bits_of_magic@cup.portal.com>
Technical Details
Message-ID:
<33533@cup.portal.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!occrsh!uokmax!apple!portal!cup.portal.com!Bits_of_MagicReferences:
<1990Aug31.025943.17730@sdd.hp.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!occrsh!uokmax!apple!portal!cup.portal.com!Bits_of_Magic From: Bits_of_Magic@cup.portal.com Newsgroups: comp.sys.amiga.tech Subject: Re: Novice question about Lattice C proto incudes. Message-ID: <33533@cup.portal.com> Date: 4 Sep 90 20:04:54 GMT References: <1990Aug31.025943.17730@sdd.hp.com> Organization: The Portal System (TM) Lines: 16