I suggest you ...

Add freestanding compilation mode

Compiler generates implict calls to CRT (this includes C library calls like memcpy or memset but also compiler specific helpers like lldiv, llrem, llshl and friends). This is a request for a freestanding mode of compilation where compiler does not generate implict calls to CRT.

Alternative solution could be to make the implictly used portion of CRT a separate, self-contained library released under more permissive license or clearly document the required calls.

Lack of this feature makes it particularly hard to build a BIOS, embedded application or unikernel using Visual Studio compiler.

While this may not be simple for C++ compiler due to SEH, freestanding mode for C compiler would be already a great help.

26 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Luke shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • Nate commented  ·   ·  Flag as inappropriate

    Agreed with Luke, no need for C++ or SEH, a C only freestanding mode that will always use instrinsic implementations for memcpy, memset, etc. would be extremely helpful for firmware development.

Feedback and Knowledge Base