Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!apple!voder!pyramid!cbmvax!cbmehq!cbmswi!cbmcel!stoller From: stoller@cbmcel.UUCP (Martin S. Stoller) Newsgroups: comp.sys.amiga.tech Subject: Re: Assembler Programming - Costs versus Benefits Message-ID: <194@cbmcel.UUCP> Date: 7 Dec 90 09:59:10 GMT References: <1990Nov25.040121.10773@zorch.SF-Bay.ORG> <1990Nov27.004859.16630@cs.umu.se> <7150@sugar.hackercorp.com> <184a3cc5.ARN04295@adspdk.UUCP> Reply-To: stoller@cbmcel.UUCP (Martin S. Stoller) Organization: COMMODORE ELECTRONICS LIMITED Lines: 33 In article <184a3cc5.ARN04295@adspdk.UUCP> hclausen@adspdk.UUCP writes: >In article , Carl Edman writes: > >> In article <7150@sugar.hackercorp.com> peter@sugar.hackercorp.com (Peter da Silva) writes: >> Almost certainly true. On the other hand, very few of these games run on my >> Amiga 3000. If they were in C they would certainly be fast enough on this >> machine. > An Asm programmer has to know about bits, registers, offsets etc. that a >C programmer wouldn't bother about. Thus, "smart" tricks come much easier >to the asm programmer than to the C ditto, and Asm programs break on my >A3000. Actually, dirty tricks are quite complex and unreadable (but >certainly doable) in C. In Asm, it's much more natural. > >| Henrik Clausen, Graffiti Data | >| ...{pyramid|rutgers}!cbmvax!cbmehq!adspdk!hclausen | >\__"Deine Zauber binden wieder, Was die Mode strengt geteilt" - Shiller__/ If a C programmer knows nothing about bits, registers, offsets, vectors, etc... THEN SHE/HE IS NOT A C PROGRAMMER!!! There are many simple and easy ways in C to play with bits, like >> and << and ~ and & and | and stuff like that. There are even two structured things, namely enum and the 16 bit struct (struct Foo={unsigned magic:2;misc:4;jello:5;...};). As fr Offsets... How do you think I can programm a library, with proper function calls, which will make sence to the system??? And I very well know what a REGISTER is; after all, it IS a C keyword :^). My two cents worth... -- Regards, UUCP: [{(uunet|pyramid|rutgers)!cbmvax}!cbmehq!cbmcel!stoller