Path: utzoo!attcan!uunet!husc6!think!ames!pasteur!ucbvax!SNYCENVM.BITNET!EPRF From: EPRF@SNYCENVM.BITNET (Peter Flass) Newsgroups: comp.os.vms Subject: Re: merging assembly with high-level languauges Message-ID: <8805251540.AA03090@ucbvax.Berkeley.EDU> Date: 23 May 88 19:13:19 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 16 > >I need some simple examples on how to combine assembly code with high >level language source. For example, suppose i want to write some C >code, but tweak the machine code it produces. I have a vague idea on >how to proceed (compile the C source with the /machine option, then >edit the listing to make the changes, then assemble the machine code, >then link everything) but i need some examples to get me started. > Last time I did anything like this I swore off for life! For what my two cents is worth you'd be *MUCH* better off leaving the compiled code alone and putting your 'tweaked' code into a handcoded Macro function (using the compiler output as a model if needed). Otherwise every time you make a source change you have to remember to make your Macro changes again and you're at the mercy of the compiler as to whether they'll fit. - Pete