search for: catamount

Displaying 20 results from an estimated 30 matches for "catamount".

2013 Jun 04
2
[LLVMdev] bug or expected behaviour?
On Jun 4, 2013, at 4:23 PM, Tyler Hardin <tghardin1 at catamount.wcu.edu> wrote: > If this were a problem with an omitted statement involving a normal variable, I'd guess you're missing a volatile qualifier. I'm not 100% sure volatile is a valid qualifier for functions, but try it. Well, yes, if I change the signature to: void test(char * v...
2013 Jun 04
5
[LLVMdev] bug or expected behaviour?
On Jun 4, 2013, at 4:42 PM, Tyler Hardin <tghardin1 at catamount.wcu.edu> wrote: > I was suggesting to add it to the function, like > volatile void func(..); > Theoretically, this would tell the compiler not to omit seemingly superfluous calls to func. 'volatile' can't apply to a function, so I'm not sure what you mean. In your exam...
2013 Feb 20
3
[LLVMdev] ARM assembler's syntax in clang
So it turns out that I was wrong. It, in fact, is not standard. But regardless, you can use asm to specify the exact name. Eg. extern int func() asm("func"); You can read more here: http://stackoverflow.com/questions/1034852/adding-leading-underscores-to-assembly-symbols-with-gcc-on-win32 Despite the title of the thread, the solution is compiler and system independent. --------------
2013 Feb 20
0
[LLVMdev] ARM assembler's syntax in clang
...s talking about a Windows target. Ashi is working on iOS. Underscores are normal and expected. Using an "asm" name on the symbol is a horrible hack. Adding the underscore to the name in the .s file is the correct solution. -Jim On Feb 20, 2013, at 12:04 AM, Tyler Hardin <tghardin1 at catamount.wcu.edu> wrote: > So it turns out that I was wrong. It, in fact, is not standard. But regardless, you can use asm to specify the exact name. Eg. > > extern int func() asm("func"); > > You can read more here: http://stackoverflow.com/questions/1034852/adding-leading-un...
2013 Jun 04
0
[LLVMdev] bug or expected behaviour?
I was suggesting to add it to the function, like volatile void func(..); Theoretically, this would tell the compiler not to omit seemingly superfluous calls to func. On Jun 4, 2013, at 4:23 PM, Tyler Hardin <tghardin1 at catamount.wcu.edu> wrote: > If this were a problem with an omitted statement involving a normal variable, I'd guess you're missing a volatile qualifier. I'm not 100% sure volatile is a valid qualifier for functions, but try it. Well, yes, if I change the signature to: void test(c...
2013 Jun 05
1
[LLVMdev] bug or expected behaviour?
On Jun 4, 2013, at 5:20 PM, Tyler Hardin <tghardin1 at catamount.wcu.edu> wrote: > I tried the "extern" specifier, which (I guess) you should use if the definition isn't in the file; and it worked with -O3. That 'extern' doesn't do anything - it's implicit. Did you try without it and get different results? In my test here...
2013 Jul 24
0
[LLVMdev] ubuntu on the mac
On 24 Jul 2013, at 08:47, Tyler Hardin <tghardin1 at catamount.wcu.edu> wrote: > Not much slower. VBox does an amazing job at getting near native performance on modern machines (those with nested paging etc.). This is definitely the best option if your computer has ~2g ram and 2+ cores. Give the Ubuntu VM 2g and 1 (maybe 2) core/s and it should be fine....
2013 Apr 06
2
[LLVMdev] How to compile object C with clang into llvm IR?
...vars.m:18:12: warning: class 'R' defined without specifying a base class [-Wobjc-root-class] @interface R { ^ ivars.m:18:13: note: add a super class to fix this problem @interface R { ^ 1 warning generated. On 2013/4/6, at 上午11:05, Tyler Hardin <tghardin1 at catamount.wcu.edu> wrote: > Look up --emit-llvm. I think it has to be used with -c. > > On Apr 5, 2013 10:55 PM, "Jonathan" <gamma_chen at yahoo.com.tw> wrote: > Following came from tools/clang/test/CodeGenObjC/message-arrays.m. But I don't know how to compile it at termi...
2013 Sep 03
2
[LLVMdev] LLVM in place of Dalvik on Android
Hi all, does anyone here know if Google has considered trading out the Dalvik VM for LLVM? What specifically I have in mind is that apps could be compiled to LLVM IR and distributed (after optimization) in that form, and then compiled to machine code on the Android machine itself. This would leave only ISA optimizations to the Android machine. It would seem, from my limited perspective, that
2013 Oct 28
2
[LLVMdev] Are Opcode and register mappings exposed anywhere?
On Oct 28, 2013, at 2:02 PM, Tyler Hardin <tghardin1 at catamount.wcu.edu> wrote: > See the source here: https://github.com/earl/llvm-mirror/blob/master/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp. It looks like getRegisterName might do what you want, but I don't know where it's coming from. (Whether it's a function or a member of a supe...
2013 Jun 05
0
[LLVMdev] bug or expected behaviour?
...I can see where the branch test is whittled down to an 'if true' and then eliminated, but cannot comment as to why this might be. Cheers, -DavidM On 05/06/2013, at 9:50 AM, Carl Norum <carl at lytro.com> wrote: > > On Jun 4, 2013, at 4:42 PM, Tyler Hardin <tghardin1 at catamount.wcu.edu> wrote: >> I was suggesting to add it to the function, like >> volatile void func(..); >> Theoretically, this would tell the compiler not to omit seemingly superfluous calls to func. > > 'volatile' can't apply to a function, so I'm not sure what y...
2013 Apr 06
0
[LLVMdev] How to compile object C with clang into llvm IR?
...ned without specifying a base class > [-Wobjc-root-class] > @interface R { > ^ > ivars.m:18:13: note: add a super class to fix this problem > @interface R { > ^ > 1 warning generated. > > On 2013/4/6, at 上午11:05, Tyler Hardin <tghardin1 at catamount.wcu.edu> wrote: > >> Look up --emit-llvm. I think it has to be used with -c. >> >> On Apr 5, 2013 10:55 PM, "Jonathan" <gamma_chen at yahoo.com.tw> wrote: >> Following came from tools/clang/test/CodeGenObjC/message-arrays.m. But I don't know how t...
2013 Jul 24
5
[LLVMdev] ubuntu on the mac
On Jul 24, 2013 2:52 AM, "Jacob Carlborg" <doob at me.com> wrote: > > Do your LLVM development on Mac OS X :) Should work well. Apple is one of the bigger supporters of LLVM, so I'd hope OS X would be a suitable dev platform. > It depends on what your needs are. Using VirtualBox will probably be the easiest. It also allows you to run both Mac OS X and Ubuntu
2013 Jul 18
3
[LLVMdev] Proposal: function prefix data
As much as I like this idea for it's use in languages with type systems like Haskell and Scheme, this proposal would limit LLVM to non-Harvard architectures. That's generally a really small minority of all processors, but it would mean there could never be a clang-avr. An alternative you could use is, instead of using the function pointer as the variable where you are referring to a
2013 Feb 20
2
[LLVMdev] ARM assembler's syntax in clang
> Do you have any advice to make the code work both under Apple and GNU gcc? The leading underscore for external symbols is standard, if that's what you're referring to. http://en.m.wikipedia.org/wiki/Underscore#Origins_in_identifiers -------------- next part -------------- An HTML attachment was scrubbed... URL:
2013 Feb 20
0
[LLVMdev] ARM assembler's syntax in clang
But it's unreasonable that if I declare a function 'foo()', then I have to implement '_foo()' in assembly, doesn't it? Best regards, ashi On Wed, Feb 20, 2013 at 10:01 AM, Tyler Hardin <tghardin1 at catamount.wcu.edu>wrote: > > Do you have any advice to make the code work both under Apple and GNU > gcc? > > The leading underscore for external symbols is standard, if that's what > you're referring to. > http://en.m.wikipedia.org/wiki/Underscore#Origins_in_identifiers >...
2013 Jun 04
0
[LLVMdev] bug or expected behaviour?
If this were a problem with an omitted statement involving a normal variable, I'd guess you're missing a volatile qualifier. I'm not 100% sure volatile is a valid qualifier for functions, but try it. If RTOS stands for real time OS, then reading up on volatile would be a really good idea. P.S. Sorry Carl, you're going to receive this twice. I forget to CC the list. --------------
2013 Jun 05
0
[LLVMdev] bug or expected behaviour?
I tried the "extern" specifier, which (I guess) you should use if the definition isn't in the file; and it worked with -O3. Input code: extern void external(void); void test(char *x) { x--; if (!x) { external(); } } Command: clang -S -o volatile-test.s -O3 test.c Output attached. The only line of interest is probably: jmp external #
2013 Jul 24
1
[LLVMdev] ubuntu on the mac
24.07.2013, 12:31, "David Chisnall" <David.Chisnall at cl.cam.ac.uk>: > On 24 Jul 2013, at 08:47, Tyler Hardin <tghardin1 at catamount.wcu.edu> wrote: > >>  Not much slower. VBox does an amazing job at getting near native performance on modern machines (those with nested paging etc.). This is definitely the best option if your computer has ~2g ram and 2+ cores. Give the Ubuntu VM 2g and 1 (maybe 2) core/s and it should...
2013 Oct 29
0
[LLVMdev] Are Opcode and register mappings exposed anywhere?
Can't you just include the generated files? What different way would you like them exposed? On Mon, Oct 28, 2013 at 11:23 AM, Stephen Checkoway <s at pahtak.org> wrote: > > On Oct 28, 2013, at 2:02 PM, Tyler Hardin <tghardin1 at catamount.wcu.edu> > wrote: > > > See the source here: > https://github.com/earl/llvm-mirror/blob/master/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp. > It looks like getRegisterName might do what you want, but I don't know > where it's coming from. (Whether it's a f...