Advertisement

Borland Compiling to assebly?

Started by March 14, 2001 11:18 AM
1 comment, last by JwayneT 23 years, 10 months ago
I was using some inline assembly when borland said I didn''t have a certian pragma and compiled my code into assembly instead of executable. I was wondering if anyone knew that pragma call, or have even heard of this. Oh, since I have the standard edition of builder 5 it didn''t come with TASM, or MASM, or whatever. So it isn''t a matter of just putting it in one of those.
a.h{text-decoration:none;color:blue;};a.h:hover{text-decoration:underline;background:red;};

Why is it called a hot water heater? Isn't it cold when it goes in the tank?

[email=jtaylor@gtemail.net" class="h]-=CF=-[/email]
#pragma inline ?

In BCB4 there are "no" problems even if that pragma isn''t issued; compiler just warns about it and restarts compilation. Compiler however seems to produce assembly code out of inlined code, so it might be possible that BCB uses tasm transparently, in which case you are out of luck; I use BCB4 pro and it has tasm32.exe included.

Solution?
Get a copy of tasm from the same friendly software vendor you got your copy of BCB from... There *might* be some free assemblers available (nasm?) that can produce OMF object files, but I wouldn''t count on it. Another possibility is that borland''s free BC5.02 includes tasm you could use.

~~~ "'impossible' is a word in the dictonary of fools" --Napoleon
Advertisement
The version you of tasm32 that you get when you buy tasm isn''t the same as the one that comes with C++ Builder 5. When you buy it the file date is 2/21/96 and with C++ Builder 5 it is 3/1/2000. I''m not sure what all the differances is but support for the .686 directive is one of the differances. If you want to use the MMX or SIMD instructions you need to buy the Professional Edition. Even then the SIMD instruction and XMM registers are not directly supported, but Intel has a header for masm that can easily be changed to provide support. It uses MMX instructions to interpret and assemble the operands so the assembler has to have support for .686.
Keys to success: Ability, ambition and opportunity.

This topic is closed to new replies.

Advertisement