- Dev-C is a free IDE for Windows that uses either MinGW or TDM-GCC as underlying compiler. Originally released by Bloodshed Software, but abandoned in 2006, it has recently been forked by Orwell, including a choice of more recent compilers.
- I understand that compilers convert c source code to assembly and then to machine code. I searched through every compiler setting I could find, and their website but I can't get it to generate assembly. Also, the website states that Dev-C uses AT&T assembly, can I also convert from that to Intel?
Dev C Assembly Code For Kids
-->Short assembly routines can be embedded directly in C function in a C code file. The mixed-language file then can be completely compiled with a single command to the C compiler (as opposed to compiling the assembly code with an assembler, compiling the C code with the C Compiler, and then linking them together). This method is fast and easy.
Microsoft Specific
Because inline assembly instructions can be mixed with C or C++ statements, they can refer to C or C++ variables by name and use many other elements of those languages.
An
__asm
block can use the following language elements:- Symbols, including labels and variable and function names
- Constants, including symbolic constants and
enum
members - Macros and preprocessor directives
- Comments (both /* */ and // )
- Type names (wherever a MASM type would be legal)
typedef
names, generally used with operators such as PTR and TYPE or to specify structure or union members
Dev C Assembly Code List
Within an
__asm
block, you can specify integer constants with either C notation or assembler radix notation (0x100 and 100h are equivalent, for example). This allows you to define (using #define
) a constant in C and then use it in both C or C++ and assembly portions of the program. You can also specify constants in octal by preceding them with a 0. For example, 0777 specifies an octal constant.C# Assembly Namespace
What do you want to know more about?
END Microsoft Specific
See also
Inline Assembler