From 44662c62f444fc50fe523d987199f6a10c9a693c Mon Sep 17 00:00:00 2001 From: Matthew Sotoudeh Date: Sun, 30 Jul 2023 18:18:25 -0700 Subject: add support for passing through sizeof & alignofs --- README.txt | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'README.txt') diff --git a/README.txt b/README.txt index 2ffd02d..cdf7306 100644 --- a/README.txt +++ b/README.txt @@ -42,14 +42,24 @@ Selling points: Known to be unsupported: -- dietC is ... optimistic about identifier conflicts with its generated - labels. It likely will not work if you run it on its own output. This is very - fixable, will do soon. -- chibicc does not have good support for long double; specifically, long - doubles cannot be used in constant expressions. This is fixable, but requires - non-trivial modifications to the chibicc side of the code. -- chibicc does not parse const, volatile, etc. type qualifiers. it would not be - too hard to support this if desired. + - dietC is ... optimistic about identifier conflicts with its generated + labels. It likely will not work if you run it on its own output. This is + very fixable, will do soon. + - chibicc does not have good support for long double; specifically, long + doubles cannot be used in constant expressions. This is fixable, but + requires non-trivial modifications to the chibicc side of the code. + - chibicc does not parse const, volatile, etc. type qualifiers. it would not + be too hard to support this if desired. + +Options: + + - Passing "--line-numbers" enables (very WIP) support for outputting #line + directives. The dietcc wrapper will attempt to automatically strip those + before calling passes & then re-insert them, so that it all happens + "automagically." Of course, it doesn't really. You'll probably find that it + has roughly the right file, but totally wrong line. + - Passing "--type-builtins" will output "sizeof(Type_%d)" and + "alignof(Type_%d)" instead of pre-computing these operations. Why not cilly? -- cgit v1.2.3