Article View: comp.sys.apple2.gno
Article #181Order of pushing parameters?
From: Soenke Behrens
Date: Tue, 10 Nov 1992 21:52
Date: Tue, 10 Nov 1992 21:52
20 lines
1508 bytes
1508 bytes
vandry@CAM.ORG (Phillip Vandry) writes:
>GR Thompson ---> Sure it's backwards! Assembly, Pascal, the GS tools,
>etc.
> They all push left to right. Only C is different!
Well, there is a reason, ain't there?
Pascal: Knows nothing about variable argument functions. Forget it.
Tools: Have a fixed number of parameters, too ... that is one ptr to
a struct that is clearly defined.
ASM: Depends. My ASM functions push right to left :)
C: On most architectures right to left ... after all, how else are you supposed
to get at the first parameters which tell you how many more are following?
Soenke
--
===========================================================================
More than silver, more than gold, I need ! behrenss@informatik.
electricity. I need it for my dreams. ! tu-muenchen.de
(RACTER) ! FIDO: 2:246/13 Soenke Behrens
Technical Details
Message-ID:
<behrenss.721432336@hphalle6>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!elroy.jpl.nasa.gov!sdd.hp.com!sgiblab!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!informatik.tu-muenchen.de!hphalle6!behrenssReferences:
<BxHC1K.2vK@CAM.ORG>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.apple2.gno Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!elroy.jpl.nasa.gov!sdd.hp.com!sgiblab!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!informatik.tu-muenchen.de!hphalle6!behrenss From: behrenss@Informatik.TU-Muenchen.DE (Soenke Behrens) Subject: Order of pushing parameters? References: <BxHC1K.2vK@CAM.ORG> Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem) Organization: Technische Universitaet Muenchen, Germany Date: Tue, 10 Nov 1992 21:52:16 GMT Message-ID: <behrenss.721432336@hphalle6> Distribution: net Lines: 20