lljvm-translator icon indicating copy to clipboard operation
lljvm-translator copied to clipboard

Unsupported types in alloca: Type=StructTyID

Open zaoqi opened this issue 5 years ago • 1 comments

https://gitlab.com/the-language/the-language/blob/c661c4f3fc13026a80d57fef31cdcdd2422d7ba2/core/arch/c/lang.c

$ ./bin/lljvm-translator lang.bc 
/home/1828_sandbox/src/github.com-maropu-lljvm-translator/lljvm-translator-master/bin/../target/lljvm-core_0.3.0-EXPERIMENTAL-with-dependencies.jar not found, so use pre-compiled /home/1828_sandbox/src/github.com-maropu-lljvm-translator/lljvm-translator-master/bin/../assembly/lljvm-core_0.3.0-EXPERIMENTAL-with-dependencies.jar
io.github.maropu.lljvm.LLJVMRuntimeException: Unsupported types in alloca: Type=StructTyID
	at io.github.maropu.lljvm.LLJVMNative.throwException(LLJVMNative.java:65)
	at io.github.maropu.lljvm.LLJVMNative.asJVMAssemblyCode(Native Method)
	at io.github.maropu.lljvm.LLJVMTranslator.main(LLJVMTranslator.java:50)

zaoqi avatar Mar 31 '19 10:03 zaoqi

This project doesn't target a full-fledge transformation, so I feel its difficult to support the conversion in the example above....

maropu avatar Apr 01 '19 02:04 maropu