Skip to content

Compiler: prepare for 32-bit target support - #539

Open
chqrlie wants to merge 2 commits into
c2lang:masterfrom
chqrlie:32bit-sizes
Open

Compiler: prepare for 32-bit target support#539
chqrlie wants to merge 2 commits into
c2lang:masterfrom
chqrlie:32bit-sizes

Conversation

@chqrlie

@chqrlie chqrlie commented Jul 13, 2026

Copy link
Copy Markdown
Contributor
  • add architecture specific static_assert size checks
  • extend tester to handle architecture specific checks: add error32/error64, warning32/warning64, note32/note64 add expect32/expect64
  • update tests accordingly
  • add libs/libc/sys_types.c2i
  • improve library type consistency
  • add i386 target architecture

@chqrlie
chqrlie force-pushed the 32bit-sizes branch 2 times, most recently from 0d5c190 to 374cd1f Compare July 14, 2026 14:10
@chqrlie
chqrlie force-pushed the 32bit-sizes branch 5 times, most recently from a73d525 to d40cae5 Compare July 26, 2026 13:03
@chqrlie
chqrlie force-pushed the 32bit-sizes branch 2 times, most recently from b0ed604 to b0a3f91 Compare July 29, 2026 08:20
chqrlie added 2 commits July 29, 2026 20:55
* fix potential buffer overflow in examples' `StringBuffer.vprintf`
* fix off by one issues in formatting calls
* improve `string_buffer.Buf.print`: generate output directly
  in buffer if possible
* add architecture specific `static_assert` size checks
* extend `tester` to handle architecture specific checks:
  add `error32`/`error64`, `warning32`/`warning64`, `note32`/`note64`
  and `expect32`/`expect64`
* update tests accordingly
* add **libs/libc/sys_types.c2i**
* improve library type consistency
* add i386 target architecture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant