You can use C++ but be extra careful.
For size, keep a close eye on your linker map file. You can find it including tons of stuff you don't need, just from an innocent-looking declaration.
For speed, profile or random-pause often. It's super easy to do more news and deletes than you really need, especially with container classes, and be really careful with things like iterators.
Often they're doing you un-asked-for favors.
You can step through the code at the assembly-language level to make sure it's only doing what you actually need, which should be about the same as the C code.
answered 2011-02-28T20:19:58.947