View Single Post
Re: What are the best practices?
Old
  (#16)
mirv
Super Moderator
 
mirv's Avatar
 
Status: Offline
Posts: 152
Join Date: Apr 2004
Default Re: What are the best practices? - 15-07-2008

Nope, VHDL. It's what I use at work. Shouldn't be treated like C - problem is that at first glance you sort of can, just that a) there's no point, and b) it gets confusing.
On a side note, I also steer clear of any form of dynamic memory management in embedded systems (at least with the stuff I do) - when you only have 8kB of memory to work with, that's not really an option.
But I'm deviating from the main topic - any further discussion on embedded programming should probably be moved to a different thread.

I also put in areas of code to cause compiler errors - for example, if I'm changing a few interfaces, I might just put a single line:
errortime;
That causes the compiler to stop. Makes sure that I don't forget to change things later. Don't know if that's really a "good" practice, but it helps me sometimes.


mirv the Silly Fish.
  
Reply With Quote