(no title)
JeremyHerrman | 4 months ago
Back then was it common to have a split or interleaved view of high level and assembly at the same time?
I'm aware that you could do something like the following, but did IDEs help visualize in a unified UI?:
$ cc -S program.c
$ cat program.s # look at the assembly
$ vi program.c # edit the C code
A quick search shows that Borland Turbo C (1987) had in-line assembly: myfunc ()
{
int i;
int x;
if (i > 0)
asm mov x,4
else
i = 7;
}
From the 1987 Borland Turbo C User's Guide [0] "This construct is a valid C if statement. Note that no semicolon was needed after the mov x, 4 instruction. asm statements are the only statements in C which depend upon the occurrence of a newline. OK, so this is not in keeping with the rest of the C language, but this is the convention adopted by several UNIX-based compilers."[0]: http://bitsavers.informatik.uni-stuttgart.de/pdf/borland/tur...
cameldrv|4 months ago
badsectoracula|4 months ago
miohtama|4 months ago
You could "dump" your OBJ file for assembly.
Later C compilers got some better inline assembler support but this was towards the 32-bit era already.
Also Borland had its own compiler, linker and such as separate binaries you could run with a Makefile but you really never had to, as why would you when you can do that in the IDE in a single keypress.
int_19h|4 months ago
On Unix though it was more common to have .s files separately.
qingcharles|4 months ago