flat assembler
Message board for the users of flat assembler.
Index
> Main > OpenCV and other libraries for FASM |
Author |
|
yeohhs 25 Mar 2018, 07:43
Yes. You can download the source codes or pre-compiled DLLs (if there are any) from their websites.
|
|||
25 Mar 2018, 07:43 |
|
Mino 25 Mar 2018, 08:40
Really, just this? I thought there were versions specially designed for the FASM assembler.
Thanks in this one |
|||
25 Mar 2018, 08:40 |
|
yeohhs 25 Mar 2018, 09:22
You'll need the C header files to find out the public interface, i.e. the C function prototypes and data structures. The tricky part to watch out for are the C macros.
But they are all in C. So you'll need to translate them into asm includes. There are tools for this but not 100% accurate. It's a lot of work. Fun, if you have the time. |
|||
25 Mar 2018, 09:22 |
|
revolution 25 Mar 2018, 09:39
yeohhs wrote: The tricky part to watch out for are the C macros. |
|||
25 Mar 2018, 09:39 |
|
yeohhs 25 Mar 2018, 10:14
revolution wrote: Do the C compilers save the preprocessed output to a file? If they do then the macros would be expanded and removed. That might it it easier to translate to fasm. Yes, there's a compiler option to do that but the output will be huge and probably unreadable. I suppose with a C-to-Inc tool, it might be manageable. I usually study the example C source codes that come with the C library to figure out how it works. Then I would write many small C codes that call the library functions. After that, stepping through the programs in a debugger or disassembling the programs should reveal all I need to know. |
|||
25 Mar 2018, 10:14 |
|
Furs 26 Mar 2018, 12:18
revolution wrote: Do the C compilers save the preprocessed output to a file? If they do then the macros would be expanded and removed. That might it it easier to translate to fasm. But yeah the output will be huge due to headers, it's not hard to filter it with sed or whatever though, to only show you lines from the start of your file onwards etc. |
|||
26 Mar 2018, 12:18 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.