On Mon, 14 Apr 2008 00:43:31 -0700 (PDT), James Kanze
<ja*********@gm ail.comwrote:
>All I can say is that there are a number of users (myself included) who find the investment worthwhile enough to do it ourselves. It took me less than a day to get the Boehm collector up and running with g++ under Linux, and I don't have access to all of the inside knowledge of the implementors. And 10%, over the life of a project, is a lot more than one man-day, even for a single project. 10% gain for 90% of the C++ projects almost certainly adds up to man-years.
Doesn't look that simple to me. I downloaded gc version 6.7 and 6.8.
nmake nodebug=1 gc.mak
makefile(389) : fatal error U1001: syntax error : illegal character
'{' in macro
I then downloaded 7.0 and by using the exact same command as posted
above (no change), it built fine. What a weird error.
Then I added the header file
#include "gc_cpp.h"
Changed the "new" to
Tree *t = new (GCNew) Tree;
cl /O2 -I"\gc-7.0\include" new.cpp "\gc-7.0\Release\gc. lib"
Compiled fine but when I ran the new.exe,
"This application has failed to start because MSVCR90.dll was not
found"
I found the file and put it in the same directory. Next error: An
application has made an error to load the C runtime library
incorrectly."
What the heck. 3 1838
On 2008-04-14 16:36, Razii wrote:
On Mon, 14 Apr 2008 00:43:31 -0700 (PDT), James Kanze
<ja*********@gm ail.comwrote:
>>All I can say is that there are a number of users (myself included) who find the investment worthwhile enough to do it ourselves. It took me less than a day to get the Boehm collector up and running with g++ under Linux, and I don't have access to all of the inside knowledge of the implementors. And 10%, over the life of a project, is a lot more than one man-day, even for a single project. 10% gain for 90% of the C++ projects almost certainly adds up to man-years.
Doesn't look that simple to me. I downloaded gc version 6.7 and 6.8.
nmake nodebug=1 gc.mak
makefile(389) : fatal error U1001: syntax error : illegal character
'{' in macro
I then downloaded 7.0 and by using the exact same command as posted
above (no change), it built fine. What a weird error.
Then I added the header file
#include "gc_cpp.h"
Changed the "new" to
Tree *t = new (GCNew) Tree;
cl /O2 -I"\gc-7.0\include" new.cpp "\gc-7.0\Release\gc. lib"
Compiled fine but when I ran the new.exe,
"This application has failed to start because MSVCR90.dll was not
found"
I found the file and put it in the same directory. Next error: An
application has made an error to load the C runtime library
incorrectly."
What the heck.
Did you read README.QUICK and doc/README.win32?
--
Erik Wikström
On Mon, 14 Apr 2008 16:31:16 GMT, Erik Wikström
<Er***********@ telia.comwrote:
>Did you read README.QUICK and doc/README.win32?
Yes, I did. Still unable to make it work. GC with compiled language is
not a good idea anyway. There should be a VM (not JVM or CLR but
special VM with JIT compiler designed specifically for C++). GC job
can be handled by VM and people will have a choice to run C++ software
compiled to bytecode (more portable) that runs on a VM.
On Apr 15, 11:23 pm, Razii <DONTwhatever.. .@hotmail.comwr ote:
On Mon, 14 Apr 2008 16:31:16 GMT, Erik Wikström
<Erik-wikst...@telia. comwrote:
Did you read README.QUICK and doc/README.win32?
Yes, I did. Still unable to make it work. GC with compiled language is
not a good idea anyway. There should be a VM (not JVM or CLR but
special VM with JIT compiler designed specifically for C++). GC job
can be handled by VM and people will have a choice to run C++ software
compiled to bytecode (more portable) that runs on a VM.
Use LLVM if you want an (optional) VM. It does just-in-time/ahead-of-
time compilation.
It has a powerful, profile-guided link-time and run-time optimizer and
it uses gcc front end, so compatibility with the standard is pretty
good.
It doesn't have a big user base yet, so it might still have some bugs
and rough edges.
--
gpd This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Pedro Miguel Carvalho |
last post by:
Greetings.
I'm creating a project that as a intricate relation between object kind of
like a set where each object in the set can be connect to a subset of object
of the set and objects not in the set can connect to objects in the set.
Every object inherits a interface to allow for a mark and sweep garbage
collector (GC) and my implementation works correctly and efficiently but
only in a single thread.
How can I garbage collect in a...
|
by: pachanga |
last post by:
The Hans-Boehm garbage collector can be successfully used with C and
C++, but not yet a standard for C++.. Is there talks about Garbage
Collector to become in the C++ standard?
|
by: Ganesh |
last post by:
Hi,
How does a garbage collector (in C++), like mark and sweep, work on
heap
allocated arrays? In this case,
1. The only live variable on stack that points to the memory may be the
one that holds the starting address of the array. Or,
2. There could be a stack variable that points to an address that is,
|
by: HalcyonWild |
last post by:
Hi,
I installed the free version(command line only) of the digital mars c++
compiler.
It said it features a garbage collection mechanism, but there was no
documentation. I figured out that you have to extend the class
mentioned in gc.h file. But it does not compile. Does the compiler
automatically extend the gc classes, while compiling.
|
by: jacob navia |
last post by:
Abstract
--------
Garbage collection is a method of managing memory by using a "collector"
library. Periodically, or triggered by an allocation request, the
collector looks for unused memory chunks and recycles them.
This memory allocation strategy has been adapted to C (and C++) by the
library written by Hans J Boehm and Alan J Demers.
Why a Garbage Collector?
-----------------------
| |
by: Fab |
last post by:
Hi !
Maybe somebody has used a GC - I think to Hans Boehm's one, but
other, if any, are welcome -. I need to use a GC in order to program an
interpreter for a functional language. Memory handling would be
otherwise difficult too much. I read that the use of Boehms'GC - well
fit for C - was generally complicated enough and particularly for STL.
I confess I considered to switch to Java for this reason...
But what about SGI hash...
|
by: Lloyd Bonafide |
last post by:
I followed a link to James Kanze's web site in another thread and was
surprised to read this comment by a link to a GC:
"I can't imagine writing C++ without it"
How many of you c.l.c++'ers use one, and in what percentage of your
projects is one used? I have never used one in personal or professional
C++ programming. Am I a holdover to days gone by?
|
by: pushpakulkar |
last post by:
Hi all,
Is garbage collection possible in C++. It doesn't come as part of
language support. Is there any specific reason for the same due to the
way the language is designed. Or it is discouraged due to
some specific reason. If someone can give inputs on the same, it will
be of great help.
Regards,
Pushpa
|
by: monalikolhe |
last post by:
Hey Guys,
I am new to this programming stuff, but i want to try using Hans Boem Garbage Collector (HBGC) as my assignment. I dont know which Compiler to use for it and how to use?
Please Help
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |