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

main function is not a universal case #676

Open
RainMolisa opened this issue Oct 26, 2024 · 1 comment
Open

main function is not a universal case #676

RainMolisa opened this issue Oct 26, 2024 · 1 comment

Comments

@RainMolisa
Copy link

Hello discopop

  1. In some system, main function is not name 'main', it will be other name. (I can change main ,and it work.)
  2. I find in your rtlib, you write file at the end of main function. This is not good, because in some big project , the main function may be execute double time. Additional, if the 'main' function not be executed, we will get nothing even the other '__dp' function is executed. I think you should change the way of "dynamic_dependencies.txt" 's output . My suggestion is write "dynamic_dependencies.txt" like a trace or log.

best wish.

@lukasrothenberger
Copy link
Collaborator

lukasrothenberger commented Nov 5, 2024

Hi @RainMolisa,
Regarding 1.:
could you maybe explain how you would do that / provide a brief example? Afaik that's not compatible with the C/C++ standard, but i might be incorrect.

Thanks in advance!

Best regards
Lukas

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

2 participants