Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!daemon From: daemon@rutgers.UUCP Newsgroups: comp.sys.cbm Subject: re: C-Power 64 sys call -- HELP! Message-ID: <1391@rutgers.RUTGERS.EDU> Date: Mon, 6-Apr-87 20:47:55 EST Article-I.D.: rutgers.1391 Posted: Mon Apr 6 20:47:55 1987 Date-Received: Thu, 9-Apr-87 03:39:05 EST Sender: daemon@rutgers.RUTGERS.EDU Lines: 21 From: prindle@NADC In C, to pass the pointer of an object to a function (or to take the address of an object with the & operator in general), that object must be "static" or "auto", not "register"! In most C compilers, the default storage class is "auto" (given that you don't explicitly declare a storage class). But in C- Power, the default storage class is "register". To solve your problem (or at least make it manageable - I didn't check it out, just saw the obvious), either declare any variables which you use & with to be explicitly auto as in: auto char x; instead of: char x; Or, even simpler, but it will make your programs run slower, use the "-a" option when invoking the compiler - this will force the default storage class to become "auto"; then if it works, go back and declare all variables which can be "register" to explicitly be so. Hope this solves your problem. Sincerely, Frank Prindle Prindle@NADC.arpa