In Reply to: Congrats!! Welcome to cmp^2 world...slimmed posted by theob on May 6, 2012 at 03:59:33:
If the goal is best possible sound achievable with given hardware it would be possible to get down to one or two kB of code running while music is playing, less if the only user interface required is the "reboot button". Details will depend on the sound card involved. Everything else in the system except for sound card, RAM and CPU would be out of the picture. Not loaded in RAM, all peripherals spun down, etc. All that is needed is a loop to reload the sound card buffer pointers. If the sound card DMA engine has large enough addressing and word count capability the CPU can be shut down as well, at least for moderately short playlists.
This is approaching the problem using the "start small" perspective. It has as a benefit complete control over what is happening in the machine when the music plays. Anyone who is serious about software improvements ought to consider this approach, at least as a benchmark of what is possible.
Tony Lauck
"Diversity is the law of nature; no two entities in this universe are uniform." - P.R. Sarkar
This post is made possible by the generous support of people like you and our sponsors:
Follow Ups
- If you want a real goal to work for: 1kB of loaded code. - Tony Lauck 08:44:35 05/06/12 (12)
- RE: If you want a real goal to work for: 1kB of loaded code. - theob 09:37:17 05/06/12 (2)
- RE: If you want a real goal to work for: 1kB of loaded code. - Tony Lauck 10:05:42 05/06/12 (1)
- RE: If you want a real goal to work for: 1kB of loaded code. - Dawnrazor 10:19:44 05/06/12 (0)
- RE: If you want a real goal to work for: 1kB of loaded code. - Dynobot 09:12:14 05/06/12 (8)
- RE: If you want a real goal to work for: 1kB of loaded code. - Tony Lauck 09:35:53 05/06/12 (5)
- RE: If you want a real goal to work for: 1kB of loaded code. - Dynobot 10:02:11 05/06/12 (4)
- RE: If you want a real goal to work for: 1kB of loaded code. - phofman 07:38:14 05/07/12 (3)
- RE: If you want a real goal to work for: 1kB of loaded code. - Dynobot 11:35:14 05/07/12 (2)
- RE: If you want a real goal to work for: 1kB of loaded code. - phofman 14:29:52 05/07/12 (1)
- RE: If you want a real goal to work for: 1kB of loaded code. - Dynobot 15:18:51 05/07/12 (0)
- RE: If you want a real goal to work for: 1kB of loaded code. - Dawnrazor 09:23:24 05/06/12 (1)
- RE: If you want a real goal to work for: 1kB of loaded code. - Dynobot 09:54:07 05/06/12 (0)