Make a test with less naive assembler then. The example posted there is a pretty straightforward task: read the 250k lines of the disassembled fbc.exe and count something interesting, such as "esp".caseih wrote:Beats it at what metric? A well-written C routine can easily best a naive assembler implementation, however dense. A well-written assembler routine would be approximately equal to a well-written C routine. Contrary to popular belief around here, hacking something out in assembler is not going to automatically make it faster in all casesjj2007 wrote:Truth is that dense assembler code beats C any time (there is a small code cache, for example).
Tell me if you can beat it with FB, C or Java or File::ReadAllLines, as suggested above by St_W.
Absolutely ;-)It's interesting to note that the average number of LOC written per day on average by a programmer is still under a dozen. I know it's true for me. One week of coding can generate thousands of LOC, and then two weeks of debugging and tweaking.