From d0491186abedd36a6e065e97bf29eaaf87f6f95c Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 24 Sep 2021 19:07:50 +0000 Subject: cc: about to emulate a printint build-in keyword (for now just prints a string) --- miniany/REQUIREMENTS | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'miniany/REQUIREMENTS') diff --git a/miniany/REQUIREMENTS b/miniany/REQUIREMENTS index 7dcfc78..0472c1e 100644 --- a/miniany/REQUIREMENTS +++ b/miniany/REQUIREMENTS @@ -110,3 +110,10 @@ TODO: - static: just ignore, we don't have a linker, otoh, just rewrite it whithout static, vararg, etc. - c4.c: checkout c5-AST branch (darn, that one looks more promising to extend!) +- cc.c: putint as a command in the language for early debugging (as in early Pascal), + points to a fundamental conflict: bootstrapping is better with stdout and stdin in + the language (no linker, no function calls etc. needed). OTOH we don't want to + have I/O as part of the language later, more be in the standard library. + Inline assembly in the generated code duplicates code with the putint in libc-freestanding. + + -- cgit v1.2.3-54-g00ecf