Re: Weird Metal C problem

2012-10-31 Thread Andrew N Wilt
Hi Johnny and list, Here is an update for the Weird Metal C problem It turns out that the previous implementation using _asm violated the C standard constraints. (The C Standard says names that only names that start with an underscore and followed by either a capital letter

Re: Weird Metal C problem

2012-10-28 Thread John McKown
I don't have the C compiler, but that code looks to me like a function call. That is, the C compiler is interpreting the line as a normal invocation of the _asm subroutine. Do you need a special compiler option, such as GENASM, for the compiler to recognize _asm as something special? Also, when I

Re: Weird Metal C problem

2012-10-28 Thread Paul Gilmartin
On Sun, 28 Oct 2012 08:22:40 -0500, John McKown wrote: I don't have the C compiler, but that code looks to me like a function call. That is, the C compiler is interpreting the line as a normal invocation of the _asm subroutine. Do you need a special compiler option, such as GENASM, for the

Re: Weird Metal C problem

2012-10-28 Thread John Gilmore
Paul Gilmartin writes: | Æsthetics shouldn't so trump technical correctness. and of course I agree. His question about the function of the colon in C followed by the assertion that he is familiar with it use only in | conditional expressions such as b ? x : y The chief function of the colon

Re: Weird Metal C problem

2012-10-28 Thread Paul Gilmartin
On Sun, 28 Oct 2012 14:10:00 -0500, John Gilmore wrote: [...] and of course I agree. Worse yet, Adrian Stern agreed recently with something I said on another list. What am I doing wrong? His question about the function of the colon in C followed by the assertion that he is familiar with it use

Re: Weird Metal C problem

2012-10-28 Thread Andrew N Wilt
IBM Mainframe Discussion List IBM-MAIN@listserv.ua.edu wrote on 10/28/2012 12:39:34 AM: From: Johnny Luo johnny.xingkui@gmail.com To: IBM-MAIN@listserv.ua.edu Date: 10/28/2012 12:41 AM Subject: Weird Metal C problem Hi, List, After upgrading from z/OS 1.9 to z/OS 1.11, all

Weird Metal C problem

2012-10-27 Thread Johnny Luo
Hi, List, After upgrading from z/OS 1.9 to z/OS 1.11, all our metal c programs just won't pass the compilation process. Take a simple test program for example: #include metal.h #include string.h void main() { _asm( here we are ); } It does pass the compilation, but the generated asm