Displaying 20 results from an estimated 12000 matches similar to: "[LLVMdev] C++ to C?"
2008 Oct 11
0
[LLVMdev] C++ to C?
Hi Duncan,
Thanks again for your reply.
Yes, I am interested in the interpreter, but perhaps I misunderstand what LLVM is...
My assumption has been that LLVM generates machine code for a virtual machine, and that you supply an interpreter that will execute the code.
I'm interested in this from an educational standpoint. What I'd like is a C/C++ compiler that generates machine code
2008 Oct 11
5
[LLVMdev] C++ to C?
Hi Michael,
On Sat, Oct 11, 2008 at 12:44 PM, Michael McDonnell <
michaeldmcdonnell at yahoo.com> wrote:
>
>
> My assumption has been that LLVM generates machine code for a virtual
> machine, and that you supply an interpreter that will execute the code.
>
The name can be somewhat confusing. LLVM is a lot of things, the web page
gives some important areas (http://llvm.org/).
2008 Oct 11
0
[LLVMdev] C++ to C?
Hi Daniel,
Thanks for your help.
You mentioned that "the current interpreter makes no pretense of running on a "virtual machine"", but isn't the interpreter itself a virtual machine? I'm not looking to emulate any particular processor - just interested in a tool that will help teach how a processor works.
Can LLVM help, or am I completely off track?
Thanks,
M.
2008 Oct 11
2
[LLVMdev] C++ to C?
I realized I missed this part of your email:
Can LLVM help, or am I completely off track?
>
It isn't clear to me yet. I have used LLVM for a different but similar
purpose, which effectively implements a stronger virtual machine on top of
the LLVM IR. I have been very happy with the decision to use LLVM instead
of, say, working with x86 directly.
On the other hand, if you are only
2008 Oct 11
1
[LLVMdev] C++ to C?
I think LLVM is capable of what you're asking, but it isn't really a
goal of the project, and thus might require you to put in a fair
amount of work yourself to get there. LLVM is targeted much more at
the compiler side of things...it makes a great educational tool in
that domain, but the virtual instruction set is tailored more to the
needs of compiler front-ends, optimizers, and code
2008 Oct 11
0
[LLVMdev] C++ to C?
Daniel,
Thanks for the reference to SPIM. It looks interesting, but appears to be an assembler that can also execute the code (it does not execute binary files). In addition, I'm probably asking for too much. Ideally, I'm looking for something like MS Visual Studio with that executes on a virtual software machine, whose source code is freely available.
Thanks,
M. McDonnell
--- On
2008 Oct 11
1
[LLVMdev] C++ to C?
On Oct 11, 2008, at 12:49 AM, Duncan Sands wrote:
> On Friday 10 October 2008 20:29:49 Michael wrote:
>> What command and options should be used to convert C++ to C?
>
> Try this:
>
> llvm-gcc -c -O3 -emit-llvm file.cpp -o - | llc -march=c -o -
>
> It should spray C code to standard out.
Bear in mind that if you use features from the C++ library, you are
still going
2005 Sep 09
1
bochs or qemu & gdb
HPA,
now that syslinux release madness has calmed down,
could you provide some info on how we syslinux-minions/wannabes
can use bochs and/or qemu to run (sys|pxe|iso|ext)linux
in an emulated environment thats more conducive to
debugging, single-stepping, and ultimately understanding
how the magic happens ?
tia
jimc
2006 May 21
8
Rails and Postgres
Hi, I''m new to Ruby on Rails and am having a little difficulty working
through the ''Rolling with Ruby on Rails'' tutorial. Can anyone help?
I''m trying to get the cookbook application to work via a Postgresql db.
But get the following error when trying to access
http://127.0.0.1:3000/recipe/new
Errno::EINVAL in RecipeController#new
Invalid argument
2007 Feb 23
5
rspec on rails 0 7 5 1
Hi there,
I can''t upgrade rspec on rails to 0.7.5.1. I followed the install guide
on the website without sucsess. Here''s my env info:
$ rails -v
Rails 1.2.2
$ gem -v
0.9.2
$ spec -v
RSpec-0.7.5.1 (r1395) - BDD for Ruby
http://rspec.rubyforge.org/
$ spec ...
<snip>
############################################################################
Your RSpec on Rails plugin
2007 Oct 18
6
spec:models depends on development db:migration
For those interested ....
rake spec:models seems to clone the test database from development. If
your dev db is empty, the models task fails mysteriously.
Anyway, to make sure your dev db is at the current migration version, I
added this dependency in lib/tasks
task ''spec:models'' => ''db:migrate''
Now the dev db is migrated up with each test pass.
Keith
2007 Oct 18
4
Feeding the framework ?
Hi there,
Is it just me or do many other rspec / rpsec_on_rails users spend more
time than they would like feeding the framework ?
Don''t get me wrong, I love rpsec, but I seem to spend about 2/3 hours
per week hunting down rspec problems.
For example, today `rake spec:models` is broken. When I migrate, load
fixtures and run `spec -cfs` all is well. When I run `rake spec:models`,
2006 Jun 06
5
Rails and Framesets
I''d like to use a frameset to separate the content in an app I''m playing
with into 3 separate panes. A 1/3 page width left pane will be for
general navigation, (so rarely needs reloading). The main content
separates into a top and bottom pane, (with the top pane being set by
the nav pane, and the bottom pane being set by the top pane).
Unfortunately, I''m new to
2012 Feb 05
5
[PATCH] Automatically select 0xe9 as default debug port if configured for Xen
As per Ian comment on previous commit 7123d9834d58287d43514d7799ed1a7b34eea243
Signed-off-by: Julian Pidancet <julian.pidancet@gmail.com>
---
src/Kconfig | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/Kconfig b/src/Kconfig
index cf0bff0..cee0005 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -361,6 +361,7 @@ menu "Debugging"
config DEBUG_IO_PORT
2010 Nov 30
2
excluding factors from sampling
Hello,
I am trying to write a function that first requires randomly sampling items
from a set of factors. I need to be able to sample from that same set of
factors, but exclude the ones that have already been sampled previously. For
example, suppose I have a set of items a-j (a,b,c,d,e,f,g,h,i, and j) and
randomly sample a, c, and f from that group. How do I sample again from the
larger group
2017 Jan 17
5
Your help needed: List of LLVM Open Projects 2017
On Mon, Jan 16, 2017 at 12:31 PM, Sean Silva <chisophugis at gmail.com> wrote:
> Do we have any open projects on LLD?
>
> I know we usually try to avoid any big "projects" and mainly add/fix
> things in response to user needs, but just wondering if somebody has any
> ideas.
>
> Some really generic/simple stuff I can think of:
> 1. trying out LLD on a large
2004 Nov 25
4
Callus, Mame and other emulators
Hi!
I'd like to play with snes, arcade and other retro games, but unfortunatelly
there isn't any linux emus for this.
So I run the emutaltor callus with wine, with medius succes: Callus works
fine, everything is ok, but it uses 100% CPU, and becouse of that, the soung
goes wrongs somethimes.
I don't know why it is takes so mutch work to wine... Callus emulate only 66
Mhz...
The
2019 Jun 27
2
[PATCH v2] drm/bochs: fix framebuffer setup.
The driver doesn't consider framebuffer pitch and offset, leading to a
wrong display in case offset != 0 or pitch != width * bpp. Fix it.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
drivers/gpu/drm/bochs/bochs.h | 2 +-
drivers/gpu/drm/bochs/bochs_hw.c | 14 ++++++++++----
drivers/gpu/drm/bochs/bochs_kms.c | 3 ++-
3 files changed, 13 insertions(+), 6 deletions(-)
2008 Jan 24
2
Meridian case
Hi there,
I have a *really* weird issue with rspec on rails:
Given a time meridian formatted using %p
When I run `rake spec` the time meridian is converted to lower case:
expected: "Today 08:00 PM",
got: "Today 08:00 pm"
Yet when I run `rake spec:models` and `spec -cfs app/models` the specs
pass, ie the the time meridian is in upper case.
Anyone got any ideas how I
2019 Jun 26
1
[PATCH 2/2] drm/bochs: fix framebuffer setup.
If bo->width doesn't match fb->width the driver fails to configure
the display correctly, resulting in a scrambled display. Fix it.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
drivers/gpu/drm/bochs/bochs.h | 2 +-
drivers/gpu/drm/bochs/bochs_hw.c | 13 +++++++++----
drivers/gpu/drm/bochs/bochs_kms.c | 1 +
3 files changed, 11 insertions(+), 5 deletions(-)