Displaying 20 results from an estimated 10000 matches similar to: "Arm: disabling/disallowing Thumb instructions"
2015 Sep 16
2
Arm: disabling/disallowing Thumb instructions
Tim Northover wrote:
> That shouldn't be happening. The "armv6" ought to imply ARM mode. What
> Thumb instructions are you seeing, and do you have a .ll file that
> reproduces the issue with standard tools or is it just the way GHC is
> driving LLVM?
Sorry false alarm.
I was a looking an object file produced by GCC compiling a C file, not
an object file produced by GHC
2012 Jun 29
2
[LLVMdev] Request for merge: GHC/ARM calling convention.
Hi Renato,
On 06/25/12 12:13 AM, Renato Golin wrote:
> Hi Karel,
>
> I understand this patch has already been merged (to 3.0), so don't
> take my question as stopping the merge to head, I'm just making sure I
> got it right... The rest looks correct.
>
> + CCIfType<[v2f64], CCAssignToReg<[Q4, Q5]>>,
> + CCIfType<[f64], CCAssignToReg<[D8, D9,
2012 Jun 29
0
[LLVMdev] Request for merge: GHC/ARM calling convention.
On 29 June 2012 17:46, Karel Gardas <karel.gardas at centrum.cz> wrote:
> Yes and no. Shortly: original GHC/ARM/LLVM port was done by Stephen on
> ARMv5/Qemu IIRC. I've later added whole VFP support and ARMv7 support. The
> code in GHC is properly #ifdefed, so if there is no VFP available on pre
> ARMv6, then it's not used. ie. GHC STG floating points regs are then
>
2010 Jun 08
4
[LLVMdev] Adding support to LLVM for data & code layout (needed by GHC)
Hi All,
The GHC developers would like to add support to llvm to enable the
order that code and data are laid out in, in the resulting assembly
code produced by llvm to be defined by the user. The reason we would
like to have this feature is explained in the blog post on GHC's use
of llvm here: http://blog.llvm.org/2010/05/glasgow-haskell-compiler-and-llvm.html,
specifically under the title,
2018 Aug 22
2
LLVM and heap-allocated thread stacks
In some language implementations, such as the Glasgow Haskell Compiler
(GHC) and the reference implementation of Go, a thread’s stack is
allocated as a data structure on the garbage-collected heap. The
garbage collector is free to move this data structure whenever it is
invoked.
Currently, GHC’s LLVM backend does not use the C stack. However, there
have been discussions about whether using the
2015 Sep 06
2
POssible bug in the Arm code generator
Hi all,
I do a little work on the Glasgow Haskell Compiler (GHC) which uses
LLVM for the backend when compiling for Arm and some other targets.
The reason I am posting to this list is that a GHC compiled program
(using the LLVM backend) is getting an illegal instruction exception
on the this instruction:
ldr r0, [r0]
According to the Arm archtecture manual:
2010 May 17
1
[LLVMdev] GHC's LLVM Backend
Hi All,
The Glasgow Haskell compiler has recently become an external user of
LLVM. You can read about it here:
http://blog.llvm.org/2010/05/glasgow-haskell-compiler-and-llvm.html
If you have any comments, questions or perhaps even advice on solving
some of the issues that need to be fixed in the backend going forward
then please reply to this email.
Cheers,
David
2010 Feb 19
5
[LLVMdev] glasgow haskell appears to be adopting LLVM
everyone--
File this under Advocacy.
See this thread <http://www.haskell.org/pipermail/glasgow-haskell-users/2010-February/018425.html> for more information, but the short summary is that they're deprecating their old "compile to GCC" backend in favor of David Terei's new LLVM backend. They're still planning for their C-- backend to be the primary backend for native
2010 Jun 08
2
[LLVMdev] Adding support to LLVM for data & code layout (needed by GHC)
Let me point out that projects using standard toolchain (e.g.
binutils) can already reorder code and data pretty much arbitrary
using sections and linker scripts.
I think it's still attractive to have reordering in LLVM to be
independent from external toolchain. This will allow reordering in JIT
and other interesting things.
I agree with John that special global with ordered list looks like
2010 Jun 08
0
[LLVMdev] Adding support to LLVM for data & code layout (needed by GHC)
On Tue, 8 Jun 2010 11:42:41 +0100, David Terei <davidterei at gmail.com>
wrote:
> Hi All,
>
> The GHC developers would like to add support to llvm to enable the
> order that code and data are laid out in, in the resulting assembly
> code produced by llvm to be defined by the user. The reason we would
> like to have this feature is explained in the blog post on GHC's
2010 Jun 08
0
[LLVMdev] Adding support to LLVM for data & code layout (needed by GHC)
On Jun 8, 2010, at 3:42 AM, David Terei wrote:
> The GHC developers would like to add support to llvm to enable the
> order that code and data are laid out in, in the resulting assembly
> code produced by llvm to be defined by the user. The reason we would
> like to have this feature is explained in the blog post on GHC's use
> of llvm here:
2018 Nov 15
2
[cfe-dev] [RFC][ARM] -Oz implies -mthumb
My understanding is that whether a gcc toolchain defaults to ARM or
Thumb is a configuration time decision by whomever builds the
toolchain. The linaro arm-linux-gnueabihf toolchain I have defaults to
-mthumb and that doesn't vary for -mcpu or any other command line
option. I haven't got a gcc to hand that defaults to -marm so that I
can test whether -mcpu=cortex-m3 will change that to
2005 Aug 01
4
Opteron in 32-bit mode
I'm spec-ing a development server for some Haskell hackers. In
particular, they need to be able to build and run the Glasgow Haskell
Compiler (ghc), the x86_64 port of which isn't quite there yet.
My current thought is to get an Opteron-based system, but load it
(initially, at least) with the 32-bit i386 version of CentOS. That buys
me near-term ghc compatibility. In the future,
2018 Nov 15
2
[cfe-dev] [RFC][ARM] -Oz implies -mthumb
Yes, exactly this:
> Sure, none of the cortex-m cores support ARM mode. Try cortex-a{5,7,8,9,15,53} etc and you'll see it works.
Sorry for being a bit vague and unclear here: yes, I should have said cortex-a{5,7,8,9,15,53}.
I was just having a play with this native compiler:
gcc-5 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
when I noticed that -Os gives me Thumb on
2015 Sep 07
2
POssible bug in the Arm code generator
Hi Erik,
> GHC does not generate or use thumb instructions
From you assembly dump, looks like the instructions are 2 bytes long,
meaning it's Thumb code not ARM.
- Denis.
> Owen Shepherd wrote:
>
>> Pay closer attention to the instruction descriptions on the page you linked
>> above:
>>
>> LDR{*type*}{*cond*}*Rt*, [*Rn* {, #*offset*}] ; immediate
2014 May 27
6
[LLVMdev] [PATCH] Symbol offsets
Somehow this cover letter was dropped from my symbol offsets patch set:
1. http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-May/073200.html
2. http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-May/073201.html
Original message
-----------------
About a year ago a proposal suggesting symbol offsets was brought to
this list[1]. This proposal goes hand-in-hand with the prefix data
proposal[2]
2010 Feb 22
2
[LLVMdev] glasgow haskell appears to be adopting LLVM
Hi David,
Your paper is linked on an LLVM site, but I can't give you the url as we are
currently down for maintenance. If I remember correctly it was under "recent papers"
off of the home site.
Garrison
On Feb 21, 2010, at 18:55, David Terei wrote:
> Just to correct, the GCC back-end isn't being depreciated in favour of
> the LLVM back-end (as much as I would to claim
2010 Jun 08
0
[LLVMdev] Adding support to LLVM for data & code layout (needed by GHC)
On Tue, Jun 8, 2010 at 4:15 PM, Eugene Toder <eltoder at gmail.com> wrote:
> Let me point out that projects using standard toolchain (e.g.
> binutils) can already reorder code and data pretty much arbitrary
> using sections and linker scripts.
> I think it's still attractive to have reordering in LLVM to be
> independent from external toolchain. This will allow reordering
2018 Nov 15
3
[cfe-dev] [RFC][ARM] -Oz implies -mthumb
I've never tried -mcpu=cortex-xyz but I know -march=armv7 defaults to Thumb
OK, I just checked, and -mcpu=cortex-{m3,m4,m7,a7,a9,a15,a53} gives Thumb
at -O1, -O1, -Os on the following gcc:
arm-linux-gnueabihf-gcc (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04) 7.3.0
cortex-m0 fails because it doesn't do hard float. I don't have an eabi
compiler around.
On Thu, Nov 15, 2018 at 4:14 AM, Tim
2011 Jul 01
2
[LLVMdev] Please review my patch to make GHC calling convention work on ARM
All,
I would like to submit the attached patch, which allows the GHC (Glasgow
Haskell Compiler) calling convention to work on ARM targets.
Could some nice person please review this code, so I can move towards
getting it committed?
I have thoroughly tested this patch again GHC on a Debian-ARM (armel)
system. Unfortunately my understanding of LLVM is limited, so it's
likely I'm not