I had suggested two better solutions before. The point is, originally,
before STL like style is popular, Is-Target_xxx is used to isolate
target dependent stuff. Short of a better soln, and having done
retarget and rehost for a very long life time (and still doing it now.
)
I would welcome better soln's, but definitely no #ifdefs or the
proliferation of that
Sun

2011/7/21 "C. Bergström" <cbergst...@pathscale.com>:
>  On 07/21/11 11:38 AM, shuxin yang wrote:
>> Is_Target_xyz() is worse than #ifdef in the sense:
>>    - it dosen't improve the retargetability a bit,
>>    - replacing #ifdef with is_target_xyz() tends to give new
>> developers false impression that open64 has high degree of
>> retargetability, which is absolutely *NOT*
>>
>> Is_Target_syz() is illusion, not solution...
> Speaking from the perspective of someone who has been involved with
>     1) Multiple real world retargets
>     2) Maintaining multiple targets and branches
>     3) Porting and maintaining code across several OS
>
> #if == hell
> ------------------
> It doesn't immediately solve the problem, but what if all the target
> specific functions were in a single file or directory?  Slow and steady
> progress will eventually win if there's a plan.
>
> I can't speak for the best solution in this case, but generally thought
> to chime in..
>
>
>
> ------------------------------------------------------------------------------
> 5 Ways to Improve & Secure Unified Communications
> Unified Communications promises greater efficiencies for business. UC can
> improve internal communications as well as offer faster, more efficient ways
> to interact with customers and streamline customer service. Learn more!
> http://www.accelacomm.com/jaw/sfnl/114/51426253/
> _______________________________________________
> Open64-devel mailing list
> Open64-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/open64-devel
>

------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to