[Gc] Beginer with GC.
Renato Tegon Forti
renato.trinity at novaamerica.net
Mon Jan 24 04:25:20 PST 2005
Hi All,
I m beginer with GC, and I have two doubts:
1 - Can I use this GC in my commercial applications?
2 - This simple use is only alloc Objs witch:
GC_MALLOC
//...
Ex:
class test
{
public:
int x;
int y[10][10];
};
int _tmain(int argc, _TCHAR* argv[])
{
int i;
GC_INIT(); /* Optional on Linux/X86; see below. */
for (int i = 0; i < 10000000; i++)
{
//char* p = new char;
test* p = (test*) GC_MALLOC(sizeof(test *));
//test* p = new test();
//delete p;
}
return 0;
}
//...
It is all that I need?
Thanks to all.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://napali.hpl.hp.com/pipermail/gc/attachments/20050124/c0753436/attachment.html
More information about the Gc
mailing list