cancel
Showing results for 
Search instead for 
Did you mean: 

how to write option byte in compile time

saran raj
Associate III
Posted on October 13, 2017 at 16:23

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.

1 REPLY 1
Thomas G
Associate II
Posted on October 25, 2017 at 08:05

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.