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

[HELP]想知道i386架构下代码具体的编译指令 #170

Open
Exbilar opened this issue Jun 29, 2023 · 1 comment
Open

[HELP]想知道i386架构下代码具体的编译指令 #170

Exbilar opened this issue Jun 29, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@Exbilar
Copy link

Exbilar commented Jun 29, 2023

我的系统是MacOS 12.6.5,我尝试用x86_64-elf-as -o boot.o boot.S手动编译i386架构下的boot.S,给出的错误信息是:
image
但是使用提供的run.sh脚本是可以正常编译运行的,我不太熟悉CMakeLists,查找了一下也没有找到可以编译成功的方法。如果将代码的#define ...修改为.SET ...倒是可以编译成功,但这样手动编译出来并不符合i386架构。

如果我想用这个boot.S和一个kernel.c写一个bare bone,请问要如何编译链接?

或者有什么方法可以让CMake输出所有编译和链接的指令吗?

@Exbilar Exbilar added the help wanted Extra attention is needed label Jun 29, 2023
@KehRoche
Copy link

目前代码正在重构,你可以参考我的仓库
https://github.com/KehRoche/SimpleKernel/tree/boot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants