Article View: alt.folklore.computers
Article #928Re: [OT] Dead DEC Punch card times (was Re: Taking Speedy too seriously)
From: Waldek Hebisch
Date: Sat, 07 Nov 2026 20:56
Date: Sat, 07 Nov 2026 20:56
39 lines
3259 bytes
3259 bytes
In alt.folklore.computers Peter Flass <Peter@iron-spring.com> wrote:
> On 11/7/26 04:45, The Natural Philosopher wrote:
>> On 07/11/2026 04:09, c186282 wrote:
>>> ASM was also *the* way for the older micro-controllers
>>> for a long time. However some of the optimized 'C'
>>> compilers can now rival ASM for speed and size and
>>> you don't have to hand-code bit-banging serial either
>>
>> At some point I idly compiled some gcc C to assembler . I spent a
>> pointless half hour trying to work out if I could have done it better.
>>
>> I couldn't..
>>
>> In terms of modern micros I wouldn't even bother unless I couldn't do it
>> in 'C'.
>>
>
> But then you add all the cruft that GCC drags in and you're back where
> you started (size-wise, at least). When PCs were new I used a compiler
> called "Aztec C" that had almost no overhead in excess libraries,
> start-up code, etc., unless you asked for them.
gcc drags very little and that mostly because you use constructs
that really need it. That is if you use floating point you may
need floating point emulation library, when you use division of
64 bit numbers you may need approriate library routine. gcc
compiled code may call memcpy, but frequently will do the job
using inline code.
Anyway, it is easy to get LED blinker in around 500 bytes of object
code and substantial functionality in 1-2 KB of object code.
Note that most of overhead is due to hardware: modern micro need
table of interrupt vectors which takes about half of LED blinker.
You need to configure clocks and peripherials that takes most of
the remainder. In my code there in no overhead that could be
directly attributed to gcc.
--
Waldek Hebisch
Technical Details
Message-ID:
<11co38u$37o9q$1@paganini.bofh.team>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!not-for-mailReferences:
<18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com> <11c9rph$2oln7$7@dont-email.me> <a6%FS.31515$DTve.14247@fx18.ams4> <nktvq5Fahr2U5@mid.individual.net> <11ce4vn$85p2$2@dont-email.me> <nl0dl5Fn18lU1@mid.individual.net> <11cg959$12d33$4@dont-email.me> <nl1si8F670U1@mid.individual.net> <11cirgn$1votj$8@dont-email.me> <11cjsfa$29mft$1@dont-email.me> <wUOdnd6AM6kIOXP3nZ2dnZfqn_udnZ2d@giganews.com> <11cn316$3bnof$15@dont-email.me> <11cnd3l$3gjc4$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: antispam@fricas.org (Waldek Hebisch)
Newsgroups: alt.folklore.computers
Subject: Re: [OT] Dead DEC Punch card times (was Re: Taking Speedy too seriously)
Date: Sat, 7 Nov 2026 20:56:00 -0000 (UTC)
Organization: bofh.team Usenet service
Message-ID: <11co38u$37o9q$1@paganini.bofh.team>
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com> <11c9rph$2oln7$7@dont-email.me> <a6%FS.31515$DTve.14247@fx18.ams4> <nktvq5Fahr2U5@mid.individual.net> <11ce4vn$85p2$2@dont-email.me> <nl0dl5Fn18lU1@mid.individual.net> <11cg959$12d33$4@dont-email.me> <nl1si8F670U1@mid.individual.net> <11cirgn$1votj$8@dont-email.me> <11cjsfa$29mft$1@dont-email.me> <wUOdnd6AM6kIOXP3nZ2dnZfqn_udnZ2d@giganews.com> <11cn316$3bnof$15@dont-email.me> <11cnd3l$3gjc4$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 7 Nov 2026 20:56:00 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3399994"; mail-complaints-to="usenet@bofh.team"; posting-host="d028f9ad2fa2c51f22dbfed0d81d7daf"; posting-account="69e66f1681224ab92235b464ce7a90b6"
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64))
X-Postfilter: Postfilter-NG 2026.10.2