User forums > Using Code::Blocks
Can RC1 handle inline assembly yet?
Urxae:
If I recall correctly, the problem was actually not inline assembly, just separate assembly files. Basically, Code::Blocks doesn't know about them, so it doesn't know what executable (in this case, assembler) to call to compile (or in this case, assemble) and which command-line options to pass to it. Inline assembly should work just fine, though as I said codecompletion and syntax highlighting probably don't support it (haven't tested though).
brandon8863:
Thanks Urxae, that is exactly what I wanted to know.
B--
Funto:
It may be possible to use it with the pre-build steps and post-build steps no?
As for code completion, the only thing which would be useful for inline assembly IMHO would be not to take care of what is between __asm{ (or asm{, or asm{) and }, because it could put the code completion in a mess, as the syntax is slightly different from C++'s.
On the other hand, who needs code completion with "mov eax, 0" ? (code completion could be useful only with function names...).
brandon8863:
Yeah, that's what I thought.. I'm not sure where the code completion topic came from. Who am I to ask such silly questions.?.?
B--
Urxae:
--- Quote from: Funto on July 31, 2005, 10:34:54 pm ---On the other hand, who needs code completion with "mov eax, 0" ? (code completion could be useful only with function names...).
--- End quote ---
I don't know much about inline assembly as I never use it, but can you not use variable names and/or addresses in it? I would think you'd want to have some way of interacting with the rest of the program, so that would be handy...
Besides, how many opcodes exist nowadays? Might be handy to have them autocomplete, provided it also give a hint as to what they do :).
Of course, the fact they don't even have the same names in g++ (AT&T syntax by default, I believe) and VC++ (I'm guessing Intel syntax from the sample provided) might make that somewhat unpractical ;).
--- Quote from: brandon8863 on July 31, 2005, 10:59:06 pm ---I'm not sure where the code completion topic came from.
--- End quote ---
It came from me not understanding what was meant by 'handling inline assembly yet', as I wasn't aware of any problems with it.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version