node/lib/metasm/metasm/exe_format/main.rb
# parses a bunch of standalone C code, compile and assemble it
parses a bunch of standalone C code, compile and assemble it
parses a bunch of standalone C code compile and assemble it
def compile_c(source, file='<unk>', lineno=1)
		cp = @cpu.new_cparser
		tune_cparser(cp)
		cp.parse(source, file, lineno)
		read_c_attrs cp if respond_to? :read_c_attrs
		asm_source = @cpu.new_ccompiler(cp, self).compile
		puts asm_source if $DEBUG
		assemble(asm_source, 'C compiler output', 1)
		c_set_default_entrypoint
	end
def compile_c ( source , file = '<unk>' , lineno = 1 ) cp = @cpu . new_cparser tune_cparser ( cp ) cp . parse ( source , file , lineno ) read_c_attrs cp if respond_to? :read_c_attrs asm_source = @cpu . new_ccompiler ( cp , self ) . compile puts asm_source if $DEBUG assemble ( asm_source , 'C compiler output' , 1 ) c_set_default_entrypoint end
parses a bunch of standalone C code, compile and assemble it
parses a bunch of standalone C code compile and assemble it
source
file
lineno