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

Adding notes of xv6 configuration for M1 Mac #35

Open
AkiyamaKunka opened this issue Mar 9, 2022 · 2 comments
Open

Adding notes of xv6 configuration for M1 Mac #35

AkiyamaKunka opened this issue Mar 9, 2022 · 2 comments

Comments

@AkiyamaKunka
Copy link

AkiyamaKunka commented Mar 9, 2022

Hi! Apple have migrated all their Mac to ARM M1 chip for 2 years, and stoped selling their old intel x86-64 product since 2020. In 2022, I noticed lots of my classmates using M1 Mac.

qemu and i386-jos-elf- both have ARM version, while gcc does not. But lldb is a practical substitute.

I tried to run the command make qemu-nox in my terminal

then the actual command generated is:

gcc -fno-pic -static -fno-builtin -fno-strict-aliasing -O2 -Wall -MD -ggdb -m32 -Werror -fno-omit-frame-pointer -fno-stack-protector   -c -o ulib.o ulib.c

Then I noticed the -ggdb option. I checked gcc's documentation, seems they only support gdb as the only one for debugging information.

Developing locally can improve efficiency dramatically to students, so just wondering if finishing xv6 project on M1 Mac is doable. (I'll also try to figure it out) Thanks!

@jeffhx
Copy link

jeffhx commented May 12, 2024

this looks to be working: https://stackoverflow.com/a/64795397/3380951

@hailelagi
Copy link

use an emulator like vmware or orbstack or run in it in an online ide like replit or codespaces on linux. see also: https://pdos.csail.mit.edu/6.1810/2024/tools.html

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

No branches or pull requests

3 participants