Dump Assembler function

42 views
Skip to first unread message

Ryan Gonzalez

unread,
Nov 15, 2013, 11:58:01 AM11/15/13
to asmji...@googlegroups.com
I noticed that, in the tests, the generated function is printed to stdout. Can I do this in the Assembler class?

--
Ryan
When your hammer is C++, everything begins to look like a thumb.

Petr Kobalíček

unread,
Dec 18, 2013, 9:34:29 AM12/18/13
to asmjit-dev
Hi Ryan,

I forgot to reply you.

The Assembler and Compiler classes use the same logging interface so it can be turned on.

This should do the trick:

FileLogger logger(stdout);
a.setLogger(&logger);

Hope that helps.

Best regards,
Petr Kobalicek

--
 
---
You received this message because you are subscribed to the Google Groups "asmjit-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to asmjit-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ryan Gonzalez

unread,
Dec 18, 2013, 1:00:00 PM12/18/13
to asmji...@googlegroups.com
Thank you! The purpose of this would be to put the code in an NASM source file so I can figure out why it keeps segfaulting. :)
Reply all
Reply to author
Forward
0 new messages