Linked by Thom Holwerda on Sun 12th Aug 2012 22:16 UTC
General Development "I cannot help but speculate on how the software on the Curiosity rover has been constructed. We know that most of the code is written in C and that it comprises 2.5 Megalines of code, roughly. One may wonder why it is possible to write such a complex system and have it work. This is the Erlang programmers view."
Permalink for comment 530973
To read all comments associated with this story, please click here.
Comment by krreagan
by krreagan on Mon 13th Aug 2012 20:54 UTC
krreagan
Member since:
2008-04-08

"The operating system is VxWorks. This is a classic microkernel. A modest guess is that the kernel is less than 10 Kilolines of code and is quite battle tested. In other words, this kernel is near bug free. "

This quote from the author reduces his credibility to near zero...

vxWorks is by no means bug free! We find them on a regular basis. If you look at the vxWorks kernel source code is looks surprisingly a lot like the code base for Emacs! About a 4-1 ratio of C code to #defines. As of about 2 years ago Windriver did not even have a R&D division... It has a lot of mileage so some of it is well tested but it's still spaghetti code. Our kernels are about 3MiB for an embedded system. Not small by any standard except desktops.

Reply Score: 1