From cca4818eb7769d6e776bdc30516a5f871f1d6393 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 31 Mar 2012 12:17:32 -0700 Subject: Sync from internal Google development. --- upb/stdc/README | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 upb/stdc/README (limited to 'upb/stdc/README') diff --git a/upb/stdc/README b/upb/stdc/README new file mode 100644 index 0000000..1815af4 --- /dev/null +++ b/upb/stdc/README @@ -0,0 +1,15 @@ +This directory contains code that is ANSI C but uses parts of the +standard library that are not available to very limited environments +like Linux Kernel modules. The standard calls environments like this +"freestanding implementations." + +This does *not* imply that the upb core can be compiled directly on a +freestanding implementation. Even the core uses library functions +that are not directly available on freestanding implementations +(notably malloc()/free(), vsnprintf(), and assert()). So compiling on +freestanding implementations may require implementing compatibility +versions of functions like malloc(). + +Also, Linux is not technically a freestanding implementation either, +since it does not accept functions that return float or double on +x86-64 (these use SSE registers which are disabled in kernel mode). -- cgit v1.2.3