Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun!imagen!atari!portal!cup.portal.com!stephan From: stephan@cup.portal.com (Stephen Derek Schaem) Newsgroups: comp.sys.amiga Subject: Re: To macro, or not to macro? (LONG) ... a programming style. Message-ID: <19353@cup.portal.com> Date: 11 Jun 89 03:52:15 GMT References: <2454@van-bc.UUCP> <19191@cup.portal.com> <10197@watcgl.waterloo.edu> Distribution: usa Organization: The Portal System (TM) Lines: 83 Ok you point is pass time writing macro so nobody can read my code?! You choose to do as you like! I like to write thing fast and writing 900 lines of assembly is not a problem.And one day I find that my macro dont do what I need, well I have to rewrite a new macro and 'debug' it. The above have nothing to do with your last message Blair, just the way I felt after reading it:-) Do you want to define experience to me? Should I add some in front of it to make you happy? ok let's do it that way.With **some experience** in 680x0 seembly .Do you want my grade from my advanced classes I took:-) 4 point make in 4 diferent area, well I dont master the english language as you have POINTED.Do you want people like me to be *outlaw* of usenet You should think of the poor one that never made it trought high school and do not have english as first language.But if my posting ofend you I can have it printed and checked for you and others.I would have Email the message to you but there is 3 people (4) in that discution. Ok lets get back to Macro usage. First you said I made said for time the same thing.Sory if I leted you think that way but readable!=confusing .I could have both cases in a listing that I can distinc where easly. Want people to write code in French?! Why should people write macro name in english!!! You will say, 'subroutines are the same'.But I said 'macro usage under 10 lines of code'.You will find almost zero sub that are under 5 instruction in my programs! Have you EVER took a program written by someone else to continue/debug it? If yes you would have posted you last message, if no I anderstand:-) Want to talk about optimizing:-)!!! MY last 48 hours where past one optimizing code.(48 hours of programing, but almost same as living). I write code in a very slopy way at the begining, I even write things in C or Basic!(you see how low:-) and when it work, only then I start optimizing! Optimizing a unfinish code is for sure a big LOST! Sometime I remove rouintes because there where leading me to the bad way. If you see ushow4.0 you will anderstand better by view, the only macro I would have used is (cant name one seem 99% of the people wont know what is it refereing too) one that call library. And since the code is SUPER optimized NO MACRO on earth could do the job!!!! That's another point I didn't shoed because it was not in the 'good' programer handbook. (reminder:macro should be used to free you up from 'repeat' or extra typing) another thing :-)' Get it work.. Slowly.Who cres?' Do you beleive that? -Macro used to do things corectly:Why do you want ASM to look like C DASM?! -a6 lib call 'SO WHAT', I run a program for 1 hour looping all the time. What is the use to pass time written macro that you use less than 10% of the time!!! Back to the loop: you have a routine called 100 time a second (supose you are mutytasking, if you do some time:-) you load 100 time a register for nothing...right only 6000 cycle, but dont you have anything better than right a *good* macro that only you *annderstand* to handle that?! You dont seem to andersand at ALL!Your macro wont work!!!!!! a5=IBase a6=EBase jsr _FreeMem(a6) exg a5,a6 ;;; ... jsr _CloseWindow(a6) exg a5,a6 (*exec call) etc.... And there is other cases.. Why do you pass time writing kids stuff for macro , you dont need macro for library call! loading the address base is too mutch typing for you so you go make a macro! You only argumant stand on nothing, if yes show me something that will convice me! you havent so fare. Last thing:-): What is 'if it's needed' (optimizing) thing? you fell that even if codes could run 4 time faster by replacing that rouitne you want do it because the program dont need that speed?! That make me Sick! you CPU has limits and when you are making it do things it dont need to be executed a task is waiting for it! Anyway C do worst than that:-) I simply act that way when people think they monopolize the CPU. On a C64 or if you dissable multytaking I would agree with your *effeciency* point, but untill we have 'cycle to burn' it's not the way to think. And again, you say you write faster with macro... Me I would just waist time writing them and remenbering them! >I can see why! You must be the king.... (cyclope in the world of the blinds). I never reply that way but you argument shock (<-not ed, no ended yet:-) Anyway, hope you forgive me for my writing and this message.I must make you feel like you discovered the table of Roset:-) 'Stephan, It look like script, it read like script... But it's not script!' :My French Teacher.