Talk:Multiboot1 Bare Bones: Difference between revisions

no edit summary
No edit summary
Line 1:
== Linkage ==
fixed minor mistake-meshounah
 
:Depending on the compiler, leading underscores are either required or wrong. Also, the summary field was designed for these messages - [[User:Combuster|Combuster]] 17:42, 11 August 2007 (CDT)
Is everyone comfortable with switching to external linkage rather than pushing things on the stack and then picking them up as arguments? The current way seems less natural, less readable, and is dependent on the calling convention. --[[User:Love4boobies|Love4boobies]] 04:17, 15 May 2012 (CDT)
::We should add either <tt>-fleading-underscore</tt> or <tt>-fno-leading-underscore</tt> to the gcc command. I'd personally prefer <tt>-fno-leading-underscore</tt> and removing all underscores from the NASM and GAS code. Any opinions on the matter? -[[User:Jhawthorn|Jhawthorn]] 19:04, 15 August 2007 (CDT)
:::I'd go for suggesting that a [[GCC Cross-Compiler|cross-compiler]] is the only guarantee for success - it also fixes several other things one's system compiler might try to annoy the user (things commandline arguments won't fix). Since the crosscompiler described does not add leading underscores, and the use of having them is purely legacy, I'd go for no underscores anyway. - [[User:Combuster|Combuster]] 04:34, 17 August 2007 (CDT)
 
== main -> kmain ==
Line 40 ⟶ 39:
 
== Revert of -fno-leading-underscore ==
 
fixed minor mistake-meshounah
:Depending on the compiler, leading underscores are either required or wrong. Also, the summary field was designed for these messages - [[User:Combuster|Combuster]] 17:42, 11 August 2007 (CDT)
::We should add either <tt>-fleading-underscore</tt> or <tt>-fno-leading-underscore</tt> to the gcc command. I'd personally prefer <tt>-fno-leading-underscore</tt> and removing all underscores from the NASM and GAS code. Any opinions on the matter? -[[User:Jhawthorn|Jhawthorn]] 19:04, 15 August 2007 (CDT)
:::I'd go for suggesting that a [[GCC Cross-Compiler|cross-compiler]] is the only guarantee for success - it also fixes several other things one's system compiler might try to annoy the user (things commandline arguments won't fix). Since the crosscompiler described does not add leading underscores, and the use of having them is purely legacy, I'd go for no underscores anyway. - [[User:Combuster|Combuster]] 04:34, 17 August 2007 (CDT)
 
I reverted an edit from Hangin10 regarding -fno-leading-underscore. One of the advantages of the [[GCC Cross-Compiler]] is that it makes any tweaks regarding this option unnecessary. IMHO, if we start "leaking" such tweaks into this tutorial, we end up with a "Bare bones for Windows" and a "Bare bones for Linux" again. Or has there been a reason for this edit that I am unaware of? -- [[User:Solar|Solar]] 08:26, 19 January 2009 (UTC)
Anonymous user