Skip to content

[c86] Allow C86 to compile using most all ELKS libc header files#2120

Merged
ghaerr merged 2 commits intomasterfrom
c86
Nov 29, 2024
Merged

[c86] Allow C86 to compile using most all ELKS libc header files#2120
ghaerr merged 2 commits intomasterfrom
c86

Conversation

@ghaerr
Copy link
Copy Markdown
Owner

@ghaerr ghaerr commented Nov 29, 2024

With the recent enhancements made to the C86 toolchain and the ELKS C86 compiler driver ecc, most all the ELKS C library header files are now acceptable input to C86, making a major step forward in moving down the path with the next step of beginning to compile the ELKS C library and bringing a toolchain to ELKS.

which header should I include to use the system calls implemented in the syscall.asm currently in 8086-toolchat repo?

You can now use the standard C headers to access system calls with the 8086 toolchain. I have currently tested the following include files which are accepted:

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <ctype.h>
#include <assert.h>
#include <errno.h>
#include <signal.h>
#include <termios.h>
#include <time.h>
#include <sys/ioctl.h>
#include <sys/stat.h>

@ghaerr
Copy link
Copy Markdown
Owner Author

ghaerr commented Nov 29, 2024

Oops @rafael2k, I need to add stdarg.h which I've just written over to 8086-toolchain in order for this to work. I'll submit a PR shorty.

@rafael2k
Copy link
Copy Markdown
Contributor

Yay! Will test as soon as you merge!

@ghaerr ghaerr merged commit 2fe82a8 into master Nov 29, 2024
@ghaerr ghaerr deleted the c86 branch November 29, 2024 17:48
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.

2 participants