Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should use the built-in std head files of GCC. #49

Open
ZhUyU1997 opened this issue Aug 20, 2022 · 0 comments
Open

Should use the built-in std head files of GCC. #49

ZhUyU1997 opened this issue Aug 20, 2022 · 0 comments

Comments

@ZhUyU1997
Copy link
Contributor

What is -ffreestanding?

https://gcc.gnu.org/onlinedocs/gcc/Standards.html
The ISO C standard defines (in clause 4) two classes of conforming implementation.
A conforming hosted implementation supports the whole standard including all the library facilities;
a conforming freestanding implementation is only required to provide certain library facilities:
those in <float.h>, <limits.h>, <stdarg.h>, and <stddef.h>;
since AMD1, also those in <iso646.h>;
since C99, also those in <stdbool.h> and <stdint.h>;
and since C11, also those in <stdalign.h> and <stdnoreturn.h>.
In addition, complex types, added in C99, are not required for freestanding implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant