Path: csiph.com!1.us.feeder.erje.net!feeder.erje.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: gah4 Newsgroups: comp.compilers Subject: Re: fledgling assembler programmer Date: Wed, 22 Mar 2023 13:31:41 -0700 (PDT) Organization: Compilers Central Sender: johnl@iecc.com Approved: comp.compilers@iecc.com Message-ID: <23-03-007@comp.compilers> References: <23-03-001@comp.compilers> <23-03-002@comp.compilers> <23-03-003@comp.compilers> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="54926"; mail-complaints-to="abuse@iecc.com" Keywords: assembler Posted-Date: 22 Mar 2023 17:16:11 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com In-Reply-To: <23-03-003@comp.compilers> Xref: csiph.com comp.compilers:3409 On Wednesday, March 22, 2023 at 12:06:05 PM UTC-7, Thomas Koenig wrote: > gah4 schrieb: (snip) > > Compilers today don't write out the generated code in the same way, > Quite the opposite. > The standard on UNIXy systems is to write out assemblly language to > a file, which is then further processed with the actual assembler. Yes, not the same way. Well, to be sure that this is about compilers, my favorite complaint is the lost art of small memory compilers. That is, ones that can run in kilobytes instead of megabytes. In any case, the OS/360 compilers don't write out assembly code that an assembler would recognize. It is meant for people. Some write it out in two columns to save paper. Labels don't have to agree with what assemblers recognize. They don't have to be in the same order that they would be for an assembler, though OS/360 object programs don't have to be in order, either. Having not thought about this for a while, I believe they put in some comments that help human readers, though likely not what an assembly programmer would say. Unixy systems might put in some comments, but mostly don't.