All Questions
Tagged with source-code c
6 questions
-1
votes
1
answer
146
views
static, dynamic analysis - what mistakes were made in the code?
A software company develops software packages for commercial animal
farming. A special function in C calculates the daily amount of feed
for different kind of animals dependent on their bodyweight....
0
votes
2
answers
257
views
How can I figure out where the code starts for a complex software project? [duplicate]
Say I want to (try to) read through and understand a fairly complex piece of code (for example the free software Coreboot firmware code, which can be found here). How can I figure out where the code ...
98
votes
6
answers
29k
views
Why are some C programs written in one huge source file?
For example, the SysInternals tool "FileMon" from the past has a kernel-mode driver whose source code is entirely in one 4,000-line file. The same for the first ever ping program ever written (~2,000 ...
5
votes
2
answers
4k
views
How small is the footprint of a small C compiler?
This week I could optimize using a reduced C library that allowed a drastic shrinkage in code size - from about 60 K to about 6 K and then we could load the code in the 8 K on-chip memory of an FPGA (...
2
votes
1
answer
1k
views
Source code of jar.exe - is it available
This may seem an odd question, but I want to create an executable which runs under Windows written in C++. The program needs to be able to update a jar file even if Java is not installed on the ...
1
vote
1
answer
186
views
How do I parse a header with two different version [ID3] avoiding code duplication?
I really hope you can give me some interesting viewpoints for my situation, because I am not satisfied with my current approach.
I am writing an MP3 parser, starting with an ID3v2 parser.
Right now ...