Re: making directories and subdirectories

From: Richard Maine (nospam_at_see.signature)
Date: 01/27/04


Date: Mon, 26 Jan 2004 17:48:44 -0800

TimC <tconnors@no.astro.spam.swin.accepted.edu.here.au> writes:

> And here we join threads on why I find fortran peculiar.
>
> In C, you are allowed to call any function. Just link the damn thing
> in.

No you aren't. This is a property of a particular class of operating
system that is written C-oriented. This is not a property of the
language in abstract at all. I have worked on operating systems where
it was just the opposite - that C was the only language that you could
not conveniently call OS library routines in - C was just too
different from everything else and too hard-wired in its expectation
of how things must be. (And I'm not counting OS's that didn't even
have C compilers)

You are simply observing that Unix is written around C, which is not
at all the same thing as saying that C is inherently just works when
calling any function.

P.S. On Windows, try to call a library function built with one C
compiler when you are using a different vendor's one. Lots of fun
often ensues (just like with Fortran). Or even the same vendor
in some cases for that matter (stdcall vs whatever the other one is).

-- 
Richard Maine
email: my last name at domain
domain: sumertriangle dot net


Relevant Pages

  • Re: Embedding assembler in a language
    ... With Seed7 I try to avoid portability pitfalls. ... improving language or implementation they offer a backdoor. ... compilers beating hand-coded assembler, that I rewrote the core of my ... Seed7 supports Linux/unix/bsd, Mac OS X and Windows (using MinGW, ...
    (comp.lang.misc)
  • Re: ANSI C compliance
    ... One of the world's most used C compilers, gcc, has a command line ... But it has nothing to do with the C language, ... > platform might not work on another platform. ... Chars have 8 bits and plain char is signed. ...
    (comp.lang.c)
  • Re: Aztec C and Dosemu
    ... impossible) to configure the way we use compilers today and disk swapping, ... Upper case hurts my eyes:) Any comparison between an Applesoft program being considered structured and a C program that is structured would be in the eyes of the beholder IMO. ... Aztec C supports inline assembly and the linking of assembly language modules if one needs to. ...
    (comp.sys.apple2.programmer)
  • Re: Article in Scientific American
    ... I.e., without an algorithm to ... proof-checker produces is not merely proof of the validity ... The point was only that using different operating systems or different ... compilers will tend to mitigate the possibility of compiler or operating ...
    (sci.math)
  • Re: new IL: C (sort of...).
    ... I have considered deprecating typedef (the reason is that typedef adds a ... and to the Algol-like language concepts. ... of ancient C compilers, like Small C, which could compile the output of ... now LLVM has them, so it is a lot more of an issue. ...
    (comp.lang.misc)

Loading