Path: 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 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