subroutine stack and C machine model12841 (10/12/2009 2:13:47 AM) comp.lang.c I'm looking and talking about a lot of C that is new to me this weekend. Does the abstract machine that is described in the standard have a subroutine stack? I've heard before that one can imagine things as a... merrill(193)
pass arguments between Sun FORTRAN and C programs641 (10/13/2009 11:33:55 PM) comp.lang.fortran Posted by M. Michael Musatov 10/13/2009 ---------------------------------------------------------------------------= ----- Next: Function Values Up: Sun Previous: External Names -----------------------------... marty.musatov(1142)
The problem with size_t5938 (10/15/2009 9:41:02 AM) comp.lang.c I am implementing the bitstring type in the container library, and obviously I store the number of bits in a size_t... Problem is, in 64 bit versions, size_t grows to 8 bytes, what is an absolute overkill for ... jacob24(973)
why gcc can not recognize ^M451 (10/20/2009 4:18:50 PM) comp.lang.c why gcc can not recognize ^M? but cc of SunOS 5.8 can accept it without error . -bash-3.00$ gcc a.c -o a a.c: In function 'main': a.c:4: error: missing terminating " character a.c:5: error: missing terminating... zhangyefei.yefei(11)
Computer Determinant Code852 (10/21/2009 7:03:20 AM) comp.lang.fortran n =3D 200819. 2. 782 therefore increment t s =3D a * sp + b * sq mod N. where. sp=3Dmdp mod (p) and sq=3Dmdq mod (q) a/b =3D (rp. m+1. =B1 sp. m )/(rq. m+1. =B1 sq. m ) [a, b, s:1] presents a plot of the mod-4... marty.musatov(1142)
URGENT fast answer needed2929 (10/26/2009 10:31:55 PM) comp.lang.c Hello friends I need to write a shell utility. It will read the contents of a file, perform a string replacement on those contents, and print out the result. It will work similarly to grep except that it per... nospam21(11322)
Why Is My Function Slow?2134 (10/30/2009 8:39:19 AM) comp.lang.c I make abs() function. It is same for original library. But, it is slow. int myAbs ( int number ) { return( number>0 ? number : -number ); } I checked its running time, so It spend more than triple running t... raleighnc7(2)
Optimization idea: put (y&1) in [] instead of if()1433 (11/4/2009 9:40:45 AM) comp.lang.c Is it OK to discuss C programming in this ng? :-) :-) I just stumbled on an optimization which surprised me, though I'm sure it's "old hat" to many of you. An interest in random-number generation was kind... jdallen2000(489)
Is thi me or GCC2540 (11/7/2009 5:11:05 PM) comp.lang.c I've just started to get a strange warning from GCC. Can you check my code for me and check that this is GCC being silly - and so it should be reported as a bug - not me missing something. Here's a cut-down e... 3-nospam(285)
size and range of int in c5227 (11/16/2009 7:21:35 AM) comp.lang.c The range of int is (2 to the power of 8 - 1) to (2 to the power of 8), which requires just 1 byte. Whereas the size of an integer is 4 bytes.... using sizeof(int). Why then are 3 extra bytes? ... faqs4me(2)