Ask Your Question

firefexx's profile - activity

2016-01-12 11:57:04 +0200 commented answer Include assembler file in Cython compilation

thank you. In this case it seems that staying with Cython involves a bit overhead. I solved it by compiling the C and asm code to a .so lib and build an interface with ctypes around it.

2016-01-09 19:43:25 +0200 received badge  Student (source)
2016-01-09 19:41:17 +0200 asked a question Include assembler file in Cython compilation

I'm just experimenting with Cython files in sage and I'm quite happy that I found out how to specify arbitrary compiler flags in my .spyx file using cargs declaration.

But there is one other thing I want to do. Beside further C source files (which I can include using the cfile declaration) I also need to include a .s file containing assembler code.

Unfortunately, I cannot simply do it the way I include C files, because it gives me error: unknown file type '.s'

Any way I can pass the .s file within my .spyx file?