crt0.s

来自「RT-Thread是发展中的下一代微内核嵌入式实时操作系统」· S 代码 · 共 28 行

S
28
字号
@@ File      : crt0.S@ This file is part of RT-Thread RTOS@ COPYRIGHT (C) 2006, RT-Thread Development Team@@ The license and distribution terms for this file may be@ found in the file LICENSE in this distribution or at@ http://www.rt-thread.com/license/LICENSE.@@ Change Logs:@ Date           Author       Notes@ 2006-07-03     Bernard      the first draft@

	.text
	.global _start
	.global _mainCRTStartup
	_start:
_mainCRTStartup:	ldr	r0, [sp], #4	@ get argc	ldr	r1, [sp]		@ get argv	add	r2, r1, r0, lsl #2	add	r2, r2, #4		@ get envp	mov	fp, #0			@ clear frame pointer	bl	__rtthread_main

⌨️ 快捷键说明

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