https://github.com/briansmith/nostdlib
nostdlib allows a C++ library that doesn't use any C++ runtime library features to be linked into a C program that does not link to the C++ runtime library.
https://github.com/briansmith/nostdlib
Last synced: 6 months ago
JSON representation
nostdlib allows a C++ library that doesn't use any C++ runtime library features to be linked into a C program that does not link to the C++ runtime library.
- Host: GitHub
- URL: https://github.com/briansmith/nostdlib
- Owner: briansmith
- Created: 2015-07-15T16:32:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-15T19:28:44.000Z (over 10 years ago)
- Last Synced: 2025-01-25T14:42:06.322Z (12 months ago)
- Language: Makefile
- Homepage:
- Size: 109 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
nostdlib allows a C++ library that doesn't use any C++ features to be linked
into a C program that does not link to the C++ runtime library.
nostdlib is loosely based on the blog post [How to write a C++ program without
libstdc++](https://ptspts.blogspot.com/2010/12/how-to-write-c-program-without-libstdc.html).
Note that nostdlib defines global ```operator new``` and ```operator delete```
that always ```abort()``` when called, whereas the code in that blog post
implements them in terms of ```malloc``` and ```free```.