由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 贡献几个 c 电面问题
相关主题
google 电面 software engr in test两个月没做题了~~
A problem about Heap and Stack.amz电面:关于用两个stacks实现一个queue 求问
Char x[] = "abc"; 是在heap还是stack上? (转载)遍历二叉树除了recursion还有啥好办法?
问道C内存的题?明天ONSITE攒人品,发面试知识点总结!!
请问如果要求in place的话,递归是不是就不能用了?刚电面完BLOOMBERG
G面经面google, fackbook前拿什么公司练手?
面试时候C++ pop之前是空 大家怎么处理。。返回什么。。 假设stack 元素都是int形的。北美点评网面经
Linux context switch 高通 面试题。??发一些面经,B,M,Y,S,RF。。。。
相关话题的讨论汇总
话题: stack话题: subroutine话题: frame话题: 下用话题: memory
进入JobHunting版参与讨论
1 (共1页)
t*******i
发帖数: 4960
1
不是什么知名公司,大家娱乐一下好了。
- 什么是 static variable,怎么用,给个例子什么情况下用以及scope
- 什么是 stack frame
- linux 下怎么 debug,用什么工具
w****a
发帖数: 710
2
考的挺底层啊,堆栈帧都考了。做嵌入式的?
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.

1 (共1页)
进入JobHunting版参与讨论
相关主题
发一些面经,B,M,Y,S,RF。。。。请问如果要求in place的话,递归是不是就不能用了?
apple电面完了一般多久出结果G面经
问个C++题面试时候C++ pop之前是空 大家怎么处理。。返回什么。。 假设stack 元素都是int形的。
c++ grill - how to dynamically allocate memory on stack?Linux context switch 高通 面试题。??
google 电面 software engr in test两个月没做题了~~
A problem about Heap and Stack.amz电面:关于用两个stacks实现一个queue 求问
Char x[] = "abc"; 是在heap还是stack上? (转载)遍历二叉树除了recursion还有啥好办法?
问道C内存的题?明天ONSITE攒人品,发面试知识点总结!!
相关话题的讨论汇总
话题: stack话题: subroutine话题: frame话题: 下用话题: memory