avatar
贡献几个 c 电面问题# JobHunting - 待字闺中
t*i
1
不是什么知名公司,大家娱乐一下好了。
- 什么是 static variable,怎么用,给个例子什么情况下用以及scope
- 什么是 stack frame
- linux 下怎么 debug,用什么工具
avatar
w*a
2
考的挺底层啊,堆栈帧都考了。做嵌入式的?
avatar
d*x
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,用什么工具

avatar
t*i
4
stack frame 我头一次听说,大牛说说该怎么回答?看看我说的是不是沾边。
是偏底层。网络安全方面的公司。

【在 w****a 的大作中提到】
: 考的挺底层啊,堆栈帧都考了。做嵌入式的?
avatar
S*I
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 我头一次听说,大牛说说该怎么回答?看看我说的是不是沾边。
: 是偏底层。网络安全方面的公司。

avatar
t*i
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。