search for: ashis

Displaying 20 results from an estimated 21 matches for "ashis".

Did you mean: ashim
2013 Mar 06
3
[LLVMdev] ARM assembler's syntax in clang
Hi Ashi, Your first LDR is a pseudoinstruction that is supported by some tools (gas and armasm, at least), but not by LLVM. Roughly speaking, it turns into a PC-relative load from a literal pool. To do what you're trying to achieve you can write your own literal pool in your assembly. You can see some examples of this sort of thing at
2013 Mar 04
2
[LLVMdev] ARM assembler's syntax in clang
Hi, all. Another problem in ARM assembly: I use LDR to load an external symbol : LDR R7,=DataTable But clang gives error: unexpected token in operand to the '=', Then I change the code to: LDR R7,=DataTable The error becomes: unsupported relocation on symbol. How can I get around this in clang? Thanks in advance! On Mon, Feb 25, 2013 at 7:14 PM, Ashi <ashi08104 at
2013 Mar 07
0
[LLVMdev] ARM assembler's syntax in clang
Hi, Bernie, Thanks for your reply! However, I still have problem by following edk2's code, my test code is attached, what I want to do is build it as a dynamic lib. But I get error from ld: ld: illegal text-relocation to _data_table in table.o from foo in use_table.o for architecture armv7 Do you have any suggestion to solve this? Thanks! //==begin table.c== int data_table[] = {0xff, 0xff};
2013 Mar 05
0
[LLVMdev] ARM assembler's syntax in clang
Hi, all. The previous post have a typo: problem in ARM assembly: I use LDR to load an external symbol : LDR R7,=DataTable But clang gives error: unexpected token in operand to the '=', Then I change the code to: LDR R7,DataTable The error becomes: unsupported relocation on symbol. How can I get around this in clang? My problem is actually how to load external symbol in
2013 Feb 14
2
[LLVMdev] ARM assembler's syntax in clang
Thanks, Renato. I'm actually porting a project which is based on GAS to iOS platform. I'll report my result. Best regards! ashi On Feb 13, 2013, at 6:20 PM, Renato Golin <renato.golin at linaro.org> wrote: > I don't think there is such a document... > > There isn't a 1:1 compatibility assurance with any syntax, including the UAL and GAS, but there is good
2013 Feb 13
2
[LLVMdev] ARM assembler's syntax in clang
Hi,all. Since the recent clang(3.2) has an integrated assembler for ARM, but I can't find document about this assembler's syntax, such assembler's directive, pseudo-instruction, (I assumed it follows the ARM Unified Assembly Language in instructions), where can I get such information? Thanks! ashi
2013 Feb 19
0
[LLVMdev] ARM assembler's syntax in clang
Hi,all, I find clang's integrated-as changes fast, My code which can't be compiled by llvm3.1 tool-chain can be compiled by llvm3.2 tool-chain now. However, there are still existing link-errors. My develop environment is: Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.2.1 Thread model: posix the code is attached, I get this error (there is no
2013 Feb 13
0
[LLVMdev] ARM assembler's syntax in clang
I don't think there is such a document... There isn't a 1:1 compatibility assurance with any syntax, including the UAL and GAS, but there is good compatibility with most of them, focusing more on GAS than any other, though recent changes are making it more in sync with the UAL (as is happening on GAS, too). I think the recommendation is to try it on, throw code that works on other (OSS)
2013 Feb 23
2
[LLVMdev] ARM assembler's syntax in clang
Hi, Jim, Why "asm" name is a horrible hack? Do you have any suggestion for cross-platform support of my ARM assembly code? Thanks! ashi On Feb 21, 2013, at 2:00 AM, Jim Grosbach <grosbach at apple.com> wrote: > You were correct the first time. That post is talking about a Windows target. Ashi is working on iOS. Underscores are normal and expected. Using an "asm" name
2008 Jul 17
3
Slow Samba writes over NFS
...ith all global defaults (except those required). Played around with Socket Options & Max Xmit sizes but no luck, it's still slower. This doesn't sound accurate, shouldn't the Samba v3.0.x be faster than Samba v2.0.10? What config options/settings should I be looking at? Regards, Ashis
2013 Feb 25
0
[LLVMdev] ARM assembler's syntax in clang
Hi,all, I've some problem when using clang compile my ARM assembly code: 1 .qn directive In GAS, .qn directive is used to create typed and/or indexed register aliases for use in Advanced SIMD Extension (Neon) instructions.( http://sourceware.org/binutils/docs/as/ARM-Directives.html#ARM-Directives) But clang's integrated-as seems have different syntax, for example, my code: input .qn
2013 Feb 19
2
[LLVMdev] ARM assembler's syntax in clang
On Tue, Feb 19, 2013 at 06:53:19PM +0800, Ashi wrote: > My develop environment is: > Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn) > > Undefined symbols for architecture armv7: > "_add_gas", referenced from: > _main in main_ios_clang.o Apple requires a leading _ for all external symbols. So "works as expected". Joerg
2013 Feb 20
0
[LLVMdev] ARM assembler's syntax in clang
You were correct the first time. That post is 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
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 Mar 07
2
[LLVMdev] ARM assembler's syntax in clang
Hi Ashi, > ld: illegal text-relocation to _data_table in table.o from foo in > use_table.o for architecture armv7 It looks like you're using iOS. I'm not familiar with the exact workings of that platform, but I think a similar message would occur in ELF-land. If iOS *is* comparable, your issue is that symbols in dynamically loaded objects can't (usually) be referenced directly
2013 Mar 08
0
[LLVMdev] ARM assembler's syntax in clang
> And be warned that the PC doesn't point at the next instruction when you use it like this - I believe you don't need to modify it at all if you swap the pop and the .long. Bernie, is it related to ARM pipeline? I'm interesting in this, is there any other additional information? On Fri, Mar 8, 2013 at 4:59 AM, Tim Northover <t.p.northover at gmail.com>wrote: > Hi Ashi,
2013 Feb 20
0
[LLVMdev] ARM assembler's syntax in clang
>Apple requires a leading _ for all external symbols. So "works as >expected". Thanks. Do you have any advice to make the code work both under Apple and GNU gcc? Best regards, ashi On Tue, Feb 19, 2013 at 8:20 PM, Joerg Sonnenberger <joerg at britannica.bec.de > wrote: > On Tue, Feb 19, 2013 at 06:53:19PM +0800, Ashi wrote: > > My develop environment is: >
2008 Aug 31
0
Slow Samba writes over NFS
Hi... Same problem here, running on CentOS 5.* and 4.5. It was solved by installing the package lockdev. Then you must restart the machine. And problem fixed. ashis.v.purbhoo wrote: > > > Hello... > > Currently in the process of upgrading Samba v2.0.10 to Samba v3.0.x, while > conducting some minimal testing, it turns-out that Samba v3.0.x is > performing slower than Samba v2.0.10. > > Set-ups: > A. Samba v3.0.x --> > Sa...
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