t*******i 发帖数: 4960 | 1 不是什么知名公司,大家娱乐一下好了。
- 什么是 static variable,怎么用,给个例子什么情况下用以及scope
- 什么是 stack frame
- linux 下怎么 debug,用什么工具 |
w****a 发帖数: 710 | |
d**********x 发帖数: 4083 | 3
忽略了,不过这玩意在.data或者.bss吧,没记错的话
%ebp --> %esp?
gdb for daily debugging
valgrind for memory issues
normally i use gcc options to do profiling..
【在 t*******i 的大作中提到】 : 不是什么知名公司,大家娱乐一下好了。 : - 什么是 static variable,怎么用,给个例子什么情况下用以及scope : - 什么是 stack frame : - linux 下怎么 debug,用什么工具
|
t*******i 发帖数: 4960 | 4 stack frame 我头一次听说,大牛说说该怎么回答?看看我说的是不是沾边。
是偏底层。网络安全方面的公司。
【在 w****a 的大作中提到】 : 考的挺底层啊,堆栈帧都考了。做嵌入式的?
|
S**I 发帖数: 15689 | 5 a stack frame is the memory space allocated to a called subroutine on the
call stack. It may contain arguments passed to the subroutine, local
variables of the subroutine, saved registers, etc., layout of the stack
frame depends on system ABI/calling convention.
【在 t*******i 的大作中提到】 : stack frame 我头一次听说,大牛说说该怎么回答?看看我说的是不是沾边。 : 是偏底层。网络安全方面的公司。
|
t*******i 发帖数: 4960 | 6 其实我说的差不多这个意思,调用函数的时候往堆栈里放东西,返回了 pop out
不过大白话说出来的。
【在 S**I 的大作中提到】 : a stack frame is the memory space allocated to a called subroutine on the : call stack. It may contain arguments passed to the subroutine, local : variables of the subroutine, saved registers, etc., layout of the stack : frame depends on system ABI/calling convention.
|