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

Optymalizacja #12

Open
tomekjaworski opened this issue Jul 9, 2019 · 0 comments
Open

Optymalizacja #12

tomekjaworski opened this issue Jul 9, 2019 · 0 comments

Comments

@tomekjaworski
Copy link

Sugeruję static oraz inline/forceinline. Tutaj chce Pan mieć zawsze pewność, że operacja dostępu do portu procesora nie będzie wymagała uruchomienia funkcji - byłaby to tylko strata czasu. Inline pozwoli kompilatorowi wstawić ciało funkcji w miejsce jej wywołania. A funkcja ta nie jest na tyle duża, aby to miało jakiekolwiek znaczenie.

https://github.com/klima7/OS/blob/b8a7c3ce4fa81f07be4b8292221aaeb57c19cf77/ports.h#L4

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