News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

C function support for L2EXTIA

Started by Vortex, September 16, 2006, 08:13:18 AM

Previous topic - Next topic

Vortex

Hi Hutch,

The current version of L2EXTIA doesn't support C functions, it's easy to do :

.386
.model flat, stdcall
option casemap :none
     
include     \masm32\include\windows.inc

includelib  \masm32\lib\kernel32.lib   
includelib  \masm32\lib\msvcrt.lib   

prC TYPEDEF PROTO C :VARARG
EXTERNDEF _imp__printf:PTR prC
crt_printf EQU <_imp__printf>

EXTERNDEF _imp__ExitProcess@4:PTR pr1
ExitProcess EQU <_imp__ExitProcess@4>

.data
string      db 'EXTERNDEF',0
string2     db 'demo',0
template    db '%s %s',0

.code

start:

    invoke  crt_printf,ADDR template,ADDR string,ADDR string2
    invoke  ExitProcess,0

END start


Can you modifty your tool to emit C function definitions?

[attachment deleted by admin]