> -----Original Message----- > From: IBM Mainframe Assembler List [mailto:ASSEMBLER- > [email protected]] On Behalf Of Edward Jaffe > Sent: Friday, December 03, 2010 6:26 PM > To: [email protected] > Subject: Re: Long Displacements - What Good Are They? > > On 12/3/2010 2:58 PM, Farley, Peter x23353 wrote: > > If any competent assembler programmer ever looks at COBOL-generated code > they invariably choke on their coffee and donut, since it is the most > awful code they have ever seen. > > I've not looked at COBOL-generated code. I've looked at the code generated > by the C compiler and it's quite good. The compiler worries about both > cache and pipeline effects and, as a result, does things an assembler > language programmer would never do because the code would not be > maintainable. > > The worst thing about using the C compiler is having to code your program > in C. ;-)
Consider yourself lucky for never having had to look at COBOL-generated code. It's a blessing. Having looked closely at both, I agree with your assessment of C-generated code. It is really quite good, as you say. As for coding in C, I don't find it that bad, myself. <Shrug> Different strokes for different folk. Myself, I have more trouble reading and writing OO languages like C++ and Java. There's just a bit too much "magic" about some of the ways it hangs together. I understand the concepts reasonably well, but actually putting them to use for my own projects I find much harder. <Sigh> I guess I'm just a straightforward procedural dude, unsuited to the heights of OO. Now if only we could get the COBOL folk to use the C back-end code optimizer and generator... Peter -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.
