Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to print the generated assembly ? #89

Closed
ssarangi opened this issue May 21, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@ssarangi
Copy link

commented May 21, 2015

I didn't see it in any of the examples or docs so I was wondering if there was support for printing the generated assembly ?

@refi64

This comment has been minimized.

Copy link
Contributor

commented May 21, 2015

AsmJit's docs mention the loggers, which is probably what you want. Example:

FileLogger logger(stdout);
my_compiler.setLogger(&logger);
// now the generated assembly will be printed

The fact I know so much about this library is kind of weird...

@ssarangi

This comment has been minimized.

Copy link
Author

commented May 21, 2015

Thanks a lot... I didn't realize the loggers were doing this. I thought they were for only logging errors.
Thanks :)

@ssarangi ssarangi closed this May 21, 2015

@kobalicek

This comment has been minimized.

Copy link
Member

commented May 21, 2015

kirby: or it means the library is so easy to use :-) ?

@refi64

This comment has been minimized.

Copy link
Contributor

commented May 21, 2015

Or I just have too much free time. ;)

@ssarangi

This comment has been minimized.

Copy link
Author

commented May 21, 2015

well i agree... definitely very well written... :) The abstraction of the compiler & assembler is really good to experiment with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.