Hello Daniel,

I am unfamiliar woththe C languages,  but does it also allow one to mix
both assembly in with the C source code?  Are there any other languages

In short, yes, most C compilers allow you to write "in-line" assembly
inside a C language source file.

However, note that this is not a standardized language feature:
different C compilers have different grammars (and semantics) for
writing in-line assembly code, so you need to consult the documentation
of the specific C compiler(s) you want to use.

The GNU C compiler (GCC) in particular has a very powerful inline __asm
(...) feature that is designed to play well with the compilers'
optimizer.  Again, read the documentation. :-)

Some C compilers (e.g. the Amsterdam Compiler Kit) do not allow writing
assembly code "in-line" as part of a C source file.  But even with
these, then you can probably still write your assembly language code as
a separate module and link it with your C code.

Thank you!

--
https://gitlab.com/tkchia :: https://codeberg.org/tkchia ::
https://github.com/tkchia


_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to