From 1c3eeb4d012c40ae33e7c2cb0ea36b8947daed90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Mon, 28 Sep 2020 01:00:00 +0000 Subject: [PATCH] what happens before main --- README.adoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.adoc b/README.adoc index b05cde0..d127fde 100644 --- a/README.adoc +++ b/README.adoc @@ -22320,6 +22320,12 @@ You are now left on the very first instruction of our tiny executable! This is analogous to <>. +Related: + +* https://electronics.stackexchange.com/questions/258896/what-happens-before-main +* https://electronics.stackexchange.com/questions/55767/who-receives-the-value-returned-by-main +* https://stackoverflow.com/questions/53570678/what-happens-before-main-in-c "What happens before main in C++?" + ===== nostartfiles programs Assembly examples under `nostartfiles` directories can use the standard library, but they don't use the pre-`main` boilerplate and start directly at our explicitly given `_start`: