Hacker News new | ask | show | jobs
by pjmlp 1127 days ago
It also misleading to think C doesn't have a runtime.

https://learn.microsoft.com/en-us/cpp/c-runtime-library/c-ru...

https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html

https://software-dl.ti.com/codegen/docs/tiarmclang/compiler_...

And many more, not feeling like linking documentation from all C compilers.

In fact this is so relevant even for C, that ISO C has a special section for deployments without runtime support, named freestanding C.

"In a freestanding environment (in which C program execution may take place without any benefit of an operating system), the name and type of the function called at program startup are implementation-defined. There are otherwise no reserved external identitiers. Any library facilities available to a freestanding propram are implementation-defined."

1 comments

That's not at all comparable.

From your link:

"Most of the routines in libgcc handle arithmetic operations that the target processor cannot perform directly."

You're trying to imply the Java native runtime is comparable to liggcc?? That's silly.

A runtime is a runtime, regardless of the size and features checkbook.
I think the point was that it's a matter of degree and not of substance