Re:Writing C software without the standard library
by qb45 on Tuesday November 29, 2016 @08:40AM
(#13062940)
Fine, but you get this thanks to already being linked with these megagodzillas like kernel32.dll. Try without them.
[ Parent
| on HN ]
Re:Writing C software without the standard library
by ekr on Tuesday November 29, 2016 @10:10AM
(#13063454)
On windows nt, ntdll gets loaded in all processes, it's hardcoded in the kernel (http://gate.upm.ro/os/LABs/Windows_OS_Internals_Curriculum_R...). That's where the loader resides, so you can't go without it. And that's where all the Zw/Nt* functions/ i.e. where the syscalls are.
So you can't really go without it.
Re:Writing C software without the standard library
by tubs on Tuesday November 29, 2016 @07:39PM
(#13067506)
Except the new picoprocesses, which don't get ntdll (or anything really, I guess).
Re:Writing C software without the standard library
by vertex-four on Tuesday November 29, 2016 @08:49AM
(#13062982)
A program which isn't linked against the Win32 stuff is an invalid program, since syscalls in Windows are not at all stable.