search for: naked

Displaying 20 results from an estimated 289 matches for "naked".

Did you mean: baked
2012 Nov 10
0
[LLVMdev] LLVM IR and Naked functions in C/C++
Hi, I've recently been investigating problems with using naked functions in Clang where portions of the stack are overwritten in debug builds. This happens on all architectures I've tested (x86, x64, ARM) and is evident in the LLVM IR itself. With the svn builds of clang, there's an additional problem where undefined results are being introduced First...
2009 Jan 09
1
[LLVMdev] naked assembler / function written entirely in asm
Hi everybody. I'm having (yet) another look at trying to get naked functions from D (1) working in our LLVM D Compiler - LDC (2). I have this test case: /// D CODE /// extern(C) int printf(char*, ...); ulong retval() { asm { naked; mov EAX, 0xff; mov EDX, 0xaa; ret; } } ulong retval2() { return (cast(ulong)0xaa << 32) | 0xff; } void main() {...
2016 Jun 20
7
Suggestion / Help regarding new calling convention
...or return value etc , it just required to set callee saved registers to be none. So what are the minimal things required to define such a CC? Other alternative that I have thought was to add new attribute for function and use it like following in TargetFrameLowering::determineCalleeSaves() // In Naked functions we aren't going to save any registers. if (MF.getFunction()->hasFnAttribute(Attribute::Naked)) return; Any suggestions / thoughts are welcomed ! Sincerely, Vivek -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/piperm...
2013 Apr 21
0
[LLVMdev] Naked functions
In gcc, naked functions do not have a return instruction. It seems that in llvm they always have a return, although the prologue and epilogue is suppressed.
2004 Feb 26
12
HFSC
hmm HFSC ? where can i find more informations and examples about the *linux* HFSC ? http://trash.net/~kaber/hfsc/ does not help here -- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
2017 Jan 27
2
llvm return value propagation & asm
Hi, I'm trying to have a pure asm function (non inlined) that returns it's own value to the caller. ; Function Attrs: naked noinline optnone define i32 @callcatch(i32, i32) #3 !dbg !10103 { BasicBlock8472: call void asm "\0D\0Apushl %ebp\0D\0Amovl 8(%esp),%eax\0D\0Amovl 12(%esp), %ebp\0D\0Acalll *%eax\0D\0Apopl %ebp\0D\0Aretl\0D\0A", ""(), !dbg !10104, !srcloc !10106 // this returns in eax re...
2017 Jan 30
2
llvm return value propagation & asm
On Mon, Jan 30, 2017 at 9:34 AM, Reid Kleckner via llvm-dev <llvm-dev at lists.llvm.org> wrote: > We need to disable most forms of IPO on naked functions. We already do this > in DeadArgElimination.cpp. We need to do it in more places. > +1. Carlo, can you please open a bug? -- Davide "There are no solved problems; there are only problems that are more or less solved" -- Henri Poincare
2013 Dec 08
1
OGG loads as a naked file, but not if embedded in an IFF.
I can now load and play AIFF, WAV, and OGG files using libsndfile and libao. Now I'm moving on to loading and playing files embedded in an IFF file. This is presenting a problem. Playing an AIFF embedded in an IFF works fine. Playing an OGG embedded in the same IFF fails. Specifically, it appears that sf_open_fd() can't figure out what it's being told to load. Except for
2006 Jun 27
2
Bare naked server
Thanks, Zed, for mongrel :!) I''ve been on TextDrive for some time running my sites behind apache w/lighttpd. Once it got running it was cool enough. When it ran. And there was still the webmin dance and all. So I decided to set things up on my little dedicated redhat server - since I''d had so much success locally w/mongrel. Fast. Simple. It has been great and I managed to move
2013 Aug 01
2
[LLVMdev] can i avoid saving CSRs for functions with noreturn
...ound that i have to save/restore callee-saved register(CSR) in prolog and epilog. because I can violate ABI from driver(c code) and shader, i plan to append the attribute 'noreturn' to all shader functions. in PrologEpilogInserter.cpp, you can find that it actually honor an attribute 'naked' which avoid saving CSR. however, it also skips generating stack-pointer adjustment, which i need. my patch is as follows. i am targeting RISC processor. can anyone tell me this patch is generic ? diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index c7...
2013 Apr 20
2
[LLVMdev] minimum function ir
Can I create a "naked" function that has only inline assembler and no return IR for example? If I create just a function will an empty basic block, it's core dumps. I'm debugging it now.
2017 Jan 31
0
llvm return value propagation & asm
On 2017-01-30 18:41, Davide Italiano wrote: > On Mon, Jan 30, 2017 at 9:34 AM, Reid Kleckner via llvm-dev > <llvm-dev at lists.llvm.org> wrote: >> We need to disable most forms of IPO on naked functions. We already do this >> in DeadArgElimination.cpp. We need to do it in more places. >> > > +1. Carlo, can you please open a bug? > Done https://llvm.org/bugs/show_bug.cgi?id=31811 -- Carlo Kok RemObjects Software
2013 Apr 20
2
[LLVMdev] minimum function ir
On 04/20/2013 02:04 PM, Reed Kotler wrote: > On 04/20/2013 01:30 PM, reed kotler wrote: >> Can I create a "naked" function that has only inline assembler and no >> return IR for example? >> >> If I create just a function will an empty basic block, it's core dumps. >> >> I'm debugging it now. > > Seems that you have to have at least a return instruction. > &g...
2018 Aug 31
2
Inline ASM ARM syntax to load immediate values with integrated assembler
...What would be the proper syntax in a C file, using inline assembly, to load a immediate value into an ARM register using clang & integrated assembler? The following syntax is rejected by LLVM: // clang -target armv7em-none-eabi -mthumb #define CONSTANT 0x1234 void __attribute__((naked)) foo(void) { asm volatile ( "ldr r0, =%0 \n" : : "X" (CONSTANT) : "r0" ); } “X” transforms the constant into a “#1234”, and LLVM does not seem to accept “=#1234” syntax. I think th...
2005 May 26
5
a more elegant approach to getting the majority level
...--------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Alcohol, an alternative to your self - 'Alcohol' by the Bare Naked Ladies
2009 Dec 27
2
[LLVMdev] ocaml bindings
...rt | External_weak | Ghost + | Common + | Linker_private end module Visibility = struct @@ -79,6 +84,15 @@ | Nest | Readnone | Readonly + | Noinline + | Alwaysinline + | Optforsize + | Stackprotect + | Stackprotectreq + | Nocapture + | Noredzone + | Noimplicitfloat + | Naked end module Icmp = struct diff -r a8c05e69647e import/llvm.org/llvm/bindings/ocaml/llvm/llvm.mli --- a/import/llvm.org/llvm/bindings/ocaml/llvm/llvm.mli Fri Dec 25 17:35:09 2009 -0800 +++ b/import/llvm.org/llvm/bindings/ocaml/llvm/llvm.mli Sun Dec 27 11:38:15 2009 -0800 @@ -82,13 +82,18 @@...
2016 Oct 05
3
Using '__attribute__((section("name")))' for inline assembly injection
...' and '.' in section names so alpha-numeric checking is probably a bit over-zealous, but embedded newlines definitely should be considered suspicious. Or perhaps there is an existing check in 'clang-tidy'? The reason they were doing this in the first place, is that the 'naked' attribute does not do what they want, which was to allow them to build custom prologue and epilogue code for a function. Thanks, MartinO -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachme...
2013 Apr 20
0
[LLVMdev] minimum function ir
On 04/20/2013 01:30 PM, reed kotler wrote: > Can I create a "naked" function that has only inline assembler and no > return IR for example? > > If I create just a function will an empty basic block, it's core dumps. > > I'm debugging it now. Seems that you have to have at least a return instruction. Is that a bug? Why can't I do...
2007 Apr 18
1
[Bridge] bridge in 'hub' mode possible?
...a 'port' (eg. an interface) is delivered to every other 'port' on the bridge. That is, effectively to just turn off MAC address learning and treat all packets on the bridge level effectively as broadcasts. Or could this be done with some ebtables hack? Suggestions appreciated, -- Naked
2017 Feb 03
2
Spotty internet connection
On 2/3/2017 3:35 AM, Steve Clark wrote: > > What kind of cable modem/gateway do you have? Just wondering because > my 12 year old Toshiba finally > crapped out and Spectrum gave me a new one. Its and ARRIS TG1682G and > it only gives me a private IP not > like the old one which gave me the public IP so I can't ssh to home > from work anymore, so I am wondering > how