I'm automatically modifying the compiler generated assembler with some
special detection and signature code for security reasons, so although
I could do this
in C++ source, it would be painful to maintain. I thought I could just
auto insert it into the assembler step before it generates the .exe
The compiler, at least in the olden days, used to internally convert C/
C++ into assembler, then the assmelber module would generate the
linkable object file.
It used to be you could invoke the assembler directly onto the output
listing file and generate the same object file.
Reviewing the assembler output it sure looks like a valid assembly
language file (snippet below).
I guess I need to see if I can assemble it with the IDE somehow.
; Listing generated by Microsoft (R) Optimizing Compiler Version
PUBLIC ?hInst@@3PAUHINSTANCE__@@A ; hInst
PUBLIC ?szTitle@@3PA_WA ; szTitle
PUBLIC ?szWindowClass@@3PA_WA ; szWindowClass