Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 29, 2024
Merged

Conversation

ghaerr
Copy link
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
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
Contributor

Yay! Will test as soon as you merge!

@ghaerr ghaerr merged commit 2fe82a8 into master Nov 29, 2024
1 check passed
@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