Skip to content

Commit

Permalink
Update NCC readme
Browse files Browse the repository at this point in the history
  • Loading branch information
maximecb committed Oct 18, 2023
1 parent 36ad9c0 commit 395abf4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ncc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ level of C compliance of NCC over time.

Supported features:
- Global variables
- Global arrays, N-dimensional arrays
- Array initializer syntax
- Arrays, N-dimensional arrays
- Array initializer syntax (global variables only)
- Structs
- Integer arithmetic and bitwise operations
- Signed and unsigned integers, `stdint.h`
Expand Down Expand Up @@ -43,20 +43,20 @@ Not yet implemented (TODO):
- The `const` qualifier
- The `double` type
- The `switch` statement
- Local arrays variables (can only be globals or malloc'ed)
- Local struct variables (can only be globals or malloc'ed)
- Initializer syntax for local array variables
- Pointers to local variables
- Struct initializer syntax

Caveats:
Caveats and quirks:
- You may need to manually insert type casts in places where they aren't required by the C standard.
- At the moment `malloc()` / `free()` don't use a free list, they just leak memory
- If you would like to help with this, the implementation is in [`include/stdlib.h`](include/stdlib.h)
- The error messages are currently fairly weak
- Type errors have no line numbers
- Errors inside macro expansions have incorrect line numbers
- The [`printf()` function](include/stdio.h) is only partially supported
- Help and contributions welcome
- Contributions and improvements welcome!

## Usage

Expand Down

0 comments on commit 395abf4

Please sign in to comment.