2017-10-13 07:23 AM
how to write option byte in compile time.
Like when i compiling my code,at that time of compiling, i have to write values in option byte or set read out protection.
2017-10-24 11:05 PM
In C the answer is simple: you don't. You'll have to do that in the tool chain that compiles the code, and then transfers it to the µC. Setting option bytes clearly is a task for the second part, the transfer.
Note that in Forth the compiler runs on the µC. There the answer would be different. Running a compiler on the target opens the door to very interesting solutions for adaptive systems.