Porting - Different operating system, compiler, and behavior
来源:互联网 发布:java遍历字符串数组 编辑:程序博客网 时间:2024/05/17 05:01
These days I am working on project porting to Mac, which is a Unix-like platform with GCC as the default compiler.
Besides some basic language grammer issues, what we need to care more are API semantic differences, compiler behaviors..
For example, there're some APIs not existed on Mac while Windows offers, or Mac contains a totally different view toward some issue comparing against Windows.And another more complex issue is about compiler, gcc may perform totally different with ms'. In one situation I met yesterday, gcc would cache the compiled binary code and when it
met the same named class in another compiling unit, it will put the cached one into it directly, which may be presumptuous and so cause bugs.
While on the contrary, you could believe what STD does on different platforms because it is protected by standard, if anything behaves differently, you can sue the producer :P
Besides some basic language grammer issues, what we need to care more are API semantic differences, compiler behaviors..
For example, there're some APIs not existed on Mac while Windows offers, or Mac contains a totally different view toward some issue comparing against Windows.And another more complex issue is about compiler, gcc may perform totally different with ms'. In one situation I met yesterday, gcc would cache the compiled binary code and when it
met the same named class in another compiling unit, it will put the cached one into it directly, which may be presumptuous and so cause bugs.
While on the contrary, you could believe what STD does on different platforms because it is protected by standard, if anything behaves differently, you can sue the producer :P
- Porting - Different operating system, compiler, and behavior
- Why is a different operating system needed?
- operating system and the histoty
- Operating System -- Process Description And Control
- Operating System: Process, Thread and Schedule(HW)
- Operating System
- Operating System
- operating system -->operating system view
- C/C++ tip: How to detect the operating system type using compiler predefined macros
- Using VirtualBox to run Ubuntu and any other operating system
- ZZ - Sharing files between Guest and Host Operating System
- Installing CGAL and related programs on Windows operating system v
- Get Browser and Operating System Information with PHP
- 《modern operating system》 chapter 5 Input and output 笔记
- the different between System.exit(0) and System.exit(1)
- different addSubview behavior between iOS 4.3 and 5.0(viewWillAppear 不被调用)
- Local operating system boot fails when external storage is attached - IBM BladeCenter and System x
- Operating System 文章链接
- ActiveState KomodoIDE在VISTA下的注册目录
- 如何学好j2me及学好J2ME关键
- GDI+图像格式转换功能
- 防菌:将牙刷泡在盐水里
- 每天1分钟 就能缓解背疼
- Porting - Different operating system, compiler, and behavior
- 专家:粗粮细粮每周轮着吃
- 秋季养生三大忌
- 有“秘密”的人心理更健康
- 教你吃出一个健康的秋季
- org.apache.commons.beanutils.DynaBean
- 立秋以后调理有四忌
- How to Add Perl CGI Script Support to Your Apache Web Server on Windows
- switch-case再次分析