Displaying 2 results from an estimated 2 matches for "foo16".
Did you mean:
  foo1
  
2013 Jan 09
2
[LLVMdev] attributes
I need to add two function attributes to clang that I can subsequently 
process in llvm.
void __attribute__((mips16)) foo16 ();
void __attribute__((nomips16)) foo32 ();
int main() {
   foo16();
   foo32();
}
Does anyone know offhand where this gets added to clang and where the 
hook for processing
in llc is?
I think that this code has changed recently.
These options mimick those of gcc.
Tia.
Reed
2008 Feb 24
0
Zeroing sensitive memory chunks [Was: Security Flaw in Popular Disk Encryption Technologies]
...\
        char b[n];                      \
        scanf("%" #n "s", b);           \
        bzero(b, sizeof(b));            \
}
foo(16)
foo(24)
foo(32)
foo(1024)
bar(16)
bar(24)
bar(28)
bar(30)
bar(31)
bar(32)
bar(1024)
int main(void)
{
        foo16();
        foo24();
        foo28();
        foo32();
        foo1024();
        bar16();
        bar24();
        bar28();
        bar30();
        bar31();
        bar32();
        bar1024();
        return 0;
}
-----
Compiled with '-O' switch, it eliminates bzero/memset for all function...