New Book and Online Robot Simulator

Dec 18, 2003 22 Replies

No necessarily. While I prefer using switch/case as well since I think it makes the code more readable, I have found that if/then's generate smaller code at least when using avr-gcc. At least this was the case (no pun intended) a while back. I'll need to double check the latest GCC version to see if it performs similarly.

I discovered this while doing some work on an AT90S2313 a while back which has only 2K of flash. The code was getting very tight and I was able to free up a significant amount of space by rewriting switch/case as if/then.

I'm still waiting on my copy, though. Amazon says it shipped today.

-Brian

-- Brian Dean, snipped-for-privacy@bdmicro.com BDMICRO - Maker of the MAVRIC ATmega128 Dev Board

formatting link

Hi Randy,

Thanks for taking a look at the robot simulator. Joe and I are hoping that it will help people get an idea of how easy it is to do powerful things with a behavior-based robot architecture.

Could you please email me a description of the problems you had with the simulator? I'd like to look into getting the bugs worked out.

Thanks!

Daniel Roth

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required