It doesn't seem to be enough, and no wonder, if LTCG is handling functions
separately, we cannot use such
method to pull the complete .obj it's residing in.

Maybe moving stuff inside these ANNOUNCE functions
could work, but I don't know how to do that.

Brgds,
Viktor

On Fri, Mar 6, 2009 at 11:47 AM, Viktor Szakáts <[email protected]>wrote:

> f.e. hbgtcore[3359]:
>>>   hb_errInternal( 9998, "Screen driver initialization failure", NULL,
>>> NULL );
>>>
>>>   /* force linking HB_GTSYS() */
>>>   HB_FUNC_EXEC( HB_GTSYS );
>>>
>>> If you want then you can cleanup all such bindings. But if MSVC
>>> tries to be more clever then programmers then it won't help and
>>> all such bindings in any locations will be pacified by optimizer.
>>
>>
>> Many thanks for the tip. I'll fix these.
>>
>
> I've moved HB_FUNC_EXEC() to the top of the function,
> but MSVC is smart enough to optimize it out.
>
> There is '__declspec( noinline )' maybe we should have
> a HB_FUNC_ANNOUNCE() or similar way to declare such function,
> having this modifier. What do you think?
>
> So:
> HB_FUNC_ANNOUNCE( HB_GTSYS ) {}
>
> Brgds,
> Viktor
>
>
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to