⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 alloca.s

📁 操作系统SunOS 4.1.3版本的源码
💻 S
字号:
/* *	.seg	"data" *	.asciz	"@(#)alloca.s 1.1 92/07/30 Copyr 1987 Sun Micro"  */	.seg	"text"#include <sun4/asm_linkage.h>	!	! o0: # bytes of space to allocate, already rounded to 0 mod 8	! o1: %sp-relative offset of tmp area	! o2: %sp-relative offset of end of tmp area	!	! we want to bump %sp by the requested size	! then copy the tmp area to its new home	! this is necessasy as we could theoretically	! be in the middle of a compilicated expression.	!	ENTRY(__builtin_alloca)	mov	%sp, %o3		! save current sp	sub	%sp, %o0, %sp		! bump to new value	! copy loop: should do nothing gracefully	b	2f	subcc	%o2, %o1, %o5		! number of bytes to move1:		ld	[%o3 + %o1], %o4	! load from old temp area	st	%o4, [%sp + %o1]	! store to new temp area	add	%o1, 4, %o12:	bg	1b	subcc	%o5, 4, %o5	! now return new %sp + end-of-temp	retl	add	%sp, %o2, %o0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -