腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
3
回答
不能将参数从C传递到汇编代码
c
、
assembly
、
nasm
据我所知,当一个参数在C中的函数调用中传递时,被调用者可以在[
ebp
+8]中找到第一个参数。section .text mov eax, [
ebp
+8]main.c #include
浏览 9
提问于2014-06-22
得票数 0
回答已采纳
1
回答
通过ASM (x86)处理syscall (所需的
ebp
)
linux
、
assembly
、
linux-kernel
、
cpu-registers
、
system-calls
我认为这几乎是一样的,但后来我意识到(按照),
ebp
用于syscall的第6个参数,这意味着我不能使用
ebp
访问堆栈。或者我可以? 我如何才能实现我在x64中所做的同样的事情呢?
浏览 5
提问于2013-12-27
得票数 0
回答已采纳
1
回答
从程序集调用printf -不工作
c
、
assembly
\0" push
ebp
call _printf ret 与“
浏览 2
提问于2014-09-11
得票数 1
回答已采纳
1
回答
在Windows上编译
Linux
汇编程序
linux
、
windows
、
assembly
、
x86
.string "Hello\n"main: movl %
esp
, %
ebp
callputs movl %
ebp
, %
esp
ret 这段代码可以在32位
Linux
上运行。
浏览 1
提问于2016-01-07
得票数 0
1
回答
合并排序分割故障NASM
assembly
、
segmentation-fault
、
nasm
、
coredump
嗨,我正试图在
linux
上用nasm实现一个合并算法,但是我有一个分割错误,所以我输入了这个"gdb mergesort核“,我得到了这个。push 10add
esp
, 8push
ebp
push eaxpushmov
ebp
,
esp
mo
浏览 0
提问于2013-10-06
得票数 0
1
回答
如何在
linux
中使用汇编语言
linux
、
assembly
、
kernel
我正在学习
Linux
内核,所以我需要阅读一些汇编代码。下面是一个示例代码 .globl mywrite,myaddmywrite: movl %
esp
,%
ebp
movl 8(%
ebp
),%ebx movl 16(%
ebp
),%edx
浏览 4
提问于2013-05-06
得票数 1
回答已采纳
1
回答
x86程序集堆栈布局混乱
assembly
、
x86
、
stack
、
disassembly
mov %
esp
,%
ebp
80483da: 83 ec 20: 89 e5 mov %
esp
,%
ebp
80483e6: 89 4d f0 mov %ecx,-0x10(%
ebp
) 第一个是在GNU/
Linux
2.6.24
浏览 0
提问于2013-11-28
得票数 0
回答已采纳
2
回答
程序集局部变量造成崩溃
assembly
、
local
我有以下用nasm语法编写的函数:_denseToDenseAddRelAVX_nocache_32_
linux
: mov
ebp
,
esp
push ecxpush edimov edx, [
ebp
+1
浏览 6
提问于2015-12-27
得票数 0
回答已采纳
1
回答
析因装配x86
linux
、
assembly
、
x86
我有这个汇编代码(用gcc -m32编译的
Linux
32bit),我真的不明白为什么我的程序不能工作。movl %
esp
, %
ebp
cmpl%
esp
ret decl %ecx%
ebp
, %<e
浏览 4
提问于2015-08-27
得票数 1
回答已采纳
2
回答
函数返回结构的调用约定
c
、
windows
、
linux
、
x86
、
calling-convention
00000017: add
esp
,1Ch对于
Linux
32: 0: push %
ebp
1: mov %
esp
,%
ebp
6: lea 0xffffffec(%
ebp
),%eax 14: lea 0xfffff
浏览 2
提问于2011-02-08
得票数 13
回答已采纳
1
回答
汇编- NASM因子问题
linux
、
assembly
、
x86
、
nasm
我正在使用32位
linux
。这是我的析因代码global factorial push
ebp
mov esi, [
ebp
+8] ; put n in esi,
ebp
;restore
浏览 2
提问于2011-12-10
得票数 0
1
回答
关于OSX的GNU程序集问题-引用字符串
macos
、
assembly
、
gnu
在视频中,它似乎是一个i386
linux
盒,我正在开发一台x64 OSX机器。 当注释掉helloWorldStr引用时,它又开始工作了。
浏览 3
提问于2013-08-19
得票数 0
1
回答
这是汇编程序错误吗?绑定指令
assembly
、
x86
、
disassembly
、
att
、
objdump
bound %
ebp
,(%
esp
) objdump将622c24反汇编为:622c24 正如您在上面看到的,源和目的地的位置是相反的obj
浏览 0
提问于2018-09-04
得票数 1
回答已采纳
1
回答
程序集EAX寄存器行为奇怪
assembly
、
x86
calling scanf call inout pushl $printstr subl $4, %
esp</
浏览 1
提问于2013-09-23
得票数 2
回答已采纳
2
回答
理解ASM。为什么这在Windows中有效呢?
linux
、
windows
、
assembly
这个错误是由修改堆栈指针而不是在最后重置它造成的,它看起来如下所示:mov
ebp
,
esp
如果正确的话,它应该写成:mov
ebp
,
esp
; do stuff hereincluding sub and add on <e
浏览 2
提问于2016-04-25
得票数 1
回答已采纳
2
回答
如何用C打印EIP地址?
c
、
linux
、
assembly
、
memory
、
x86
我想打印出
ESP
,
EBP
和EIP。\n", k); }0xbffff668 <= $
EBP
但是,当我尝试放置EIP代码时,在编译它时会得到以下错误。(gdb) i r $eip $
esp
$
ebp
The program has no registers now.
浏览 0
提问于2018-05-22
得票数 3
回答已采纳
1
回答
将程序集从64编译为m32 % ld时出错
gcc
、
assembly
这是32位代码: pushl %
ebp
subl $8, %
esp
pushl %esi movl $2,%esi cmpl 8(%
ebp
), %esi movl -4(%
ebp
), %e
浏览 2
提问于2012-03-03
得票数 0
回答已采纳
1
回答
为什么我的代码会在开始函数的末尾崩溃?
linux
、
gcc
、
assembly
、
compiler-construction
、
linker
测试平台为32位
Linux
。mov
ebp
,
esp
mov eax, 0 ret .type main, @function push
ebp
and
esp
, -16 sub
esp<
浏览 2
提问于2013-12-23
得票数 2
回答已采纳
2
回答
如何将变量传递给外部程序集函数
c
、
assembly
、
memory
、
x86
、
calling-convention
如何将C程序中的变量传递给汇编函数。 示例: main.c: void main() { extern asm_function();} main.asm: bits 32section .text ... 如何在asm_function中访问passthis。 编辑:可能应该提到我没有使用操作系统,我正在使用i686-elf交叉编译器进行编译,并打算将其用作内核。
浏览 20
提问于2019-10-18
得票数 0
回答已采纳
1
回答
X86:不引用标准库进行系统调用
linux
、
assembly
、
x86
、
system-calls
、
att
return 0;在我以32位AT&T语法转换成程序集代码(一个.s文件)之后: .globl _start pushl %
ebp
movl %
esp
, %
ebp
subl $8224, %
esp
#space for28(%
esp
), %eax
浏览 1
提问于2014-12-03
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
栈溢出原理浅析
C语言/C加加编程新手入门基础学习之函数调用规则
在win10的linux子系统中安装esp32开发环境
MicroPython–MQTT与ESP32/ESP8266
ESP32开发-ESP-IDF+VSCode-HelloWorld和项目结构
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券