public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* argv
@ 2024-01-01  3:28 André Albergaria Coelho
  0 siblings, 0 replies; only message in thread
From: André Albergaria Coelho @ 2024-01-01  3:28 UTC (permalink / raw)
  To: gcc

Why is the content of argv, on the stack? why not on data section?

since its on the stack..say, i have

argv[] = "HELLO WORLD";

need to push "HELL"

               push "O WO";

                 push "RLD";

right? or is there any other mechanism to load the string into the stack?

sorry if this is too basic....

andre

-- 
André Albergaria Coelho
andrealbergaria@gmail.com


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-01  3:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-01  3:28 argv André Albergaria Coelho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).