Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site fortune.UUCP Path: utzoo!linus!decvax!harpo!ihnp4!fortune!lee From: lee@fortune.UUCP (Ed Lee) Newsgroups: net.arch,net.micro.68k,net.micro.16k Subject: nargs and more ... Message-ID: <2168@fortune.UUCP> Date: Wed, 4-Jan-84 18:43:32 EST Article-I.D.: fortune.2168 Posted: Wed Jan 4 18:43:32 1984 Date-Received: Fri, 6-Jan-84 02:14:07 EST Organization: Fortune Systems, Redwood City, CA Lines: 11 The compiler knows about nargs of the routines (some C compilers put them in comments ) which are useful for the optimizer. Unfortunely, the 68k has no good way of using this information. The 16k, however, can use "ret const" to adjust the stack before returning to the calling routine. This requires the called routine to handle the stack frame instead of the calling routine. This is almost the best way to handle it, if not for the problems of variable args of the standard idiotic C library's print and scanf. c / Ed Lee C. /_. {amd70, ihnp4, harpo}!fortune!lee