Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Ticket #62 (new defect)

Opened 4 months ago

Last modified 1 month ago

naked attribute for inline asm is ignored

Reported by: lindquist Assigned to: lindquist
Priority: major Milestone:
Version: Keywords:
Cc:

Description

for some really simple cases naked functions work fine, however not all... I asked in the llvmdc irc channel and seems it should be doable with module level inline asm:

<lindquist> is there a way to tell llvm that a function will be implemented entirely in inline asm ?
<lindquist> so that it doesn't emit a function prologue etc
<efriedma> lindquist: you can use module-level inline asm
<lindquist> I would have to call it with inline asm then wouldn't I ?
<efriedma> lindquist: no, you can just add an external function declaration with the same name
<lindquist> neat :)
<lindquist> thanx

Change History

08/02/08 10:24:31 changed by lindquist

this will probably only be workable as long as the naked function is implemented as one big asm block.

10/31/08 05:14:13 changed by lindquist

  • owner set to lindquist.

Don was kind enough to explain things on the newsgroup. This thread should explain enough to implement 'naked' in LDC.

Copyright © 2008, LDC Development Team.