Skip to content

How to use all or a specific number of CPU cores? #66

Answered by edubart
stefanos82 asked this question in Q&A
Discussion options

You must be logged in to vote

The Nelua compiler does not use multiple threads to compile at any moment, thus this option does not exist. Writing a multi thread compiler is difficult, time consuming and impose many limitations, moreover the language design decisions like pre processing while compiling does not allow such things happen, because all code must be processed sequentially. The C code is also generated to a single source file for simplicity reasons and other design decisions, thus the C compilation step will also use a single thread because I am not aware of any C compiler that can use multiple threads when compiling a single translation unit.

If you are looking for faster compile time in the C compilation s…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@stefanos82
Comment options

@edubart
Comment options

@stefanos82
Comment options

Answer selected by stefanos82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants