godbolt

Step into standard library call with godbolt

ε祈祈猫儿з 提交于 2021-01-26 07:40:35
问题 I want to know how various compilers implement std::random_device , so I popped it into godbolt. Unfortunately, the only thing it says is std::random_device::operator()(): push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call std::random_device::_M_getval() leave ret which is not very helpful. How can I step into the _M_getval() call and examine the assembly there? 回答1: You can't "step into" functions; Godbolt isn't a debugger, it's a