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

Cargo.toml의 opt-level을 0으로 설정하면 부팅이 되지 않음 #167

Closed
kimjungwow opened this issue Aug 24, 2020 · 1 comment
Closed
Assignees

Comments

@kimjungwow
Copy link
Collaborator

  • Remove C-style strings #147 에서 다음과 같이 opt-level을 1로 설정하였고, 부팅 및 usertests가 정상적인 상태입니다.

rv6/kernel-rs/Cargo.toml

Lines 14 to 16 in bf8f076

[profile.dev]
panic = "abort"
opt-level = 1

  • opt-level이 1이면 아래 그림과 같이 일부 expression의 값이 optimized-out 되어 보이지 않아 디버깅에 제한이 있습니다. opt-level을 0으로 바꾸면 디버깅이 수월합니다.
    Imgur

  • 하지만 opt-level을 0으로 바꾸면 부팅이 되지 않습니다.

    • Cargo.toml에서 opt-level을 0으로 바꾼 경우
      Imgur
    • Cargo.toml에서 opt-level을 0으로 바꾸고, lto를 true로 설정한 경우
      Imgur
@kimjungwow kimjungwow self-assigned this Aug 24, 2020
@kimjungwow
Copy link
Collaborator Author

같은 이슈를 또 생성해 죄송합니다.
#129 에서 논의하겠습니다!

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

1 participant