baidu / baidu/tera

support 32bit system ( caused by atomic.h)

Open
#334 1 comment 0 reactions 1 assignee Claimed by @taocp View on GitHub
stat/will-see-later
Dominant language
C++
Stars
1.9k
Forks
432
PR merge metrics
No merged PRs in 30d

Description

1. 需不需要讨论是否有必要支持32位Linux?
2. 目前不支持32位的原因(编译的角度):主要是pbrpc和tera的atomic.h用到了(疑似)32位不支持的嵌入式汇编指令(注释掉就编译通过了)。
3. 对于不支持的汇编指令,我用等价的代码替换掉之后,编译ok,运行的话,`./teracli show`和`./teracli create xxx`是ok的,读写数据等还有点问题,具体原因还没看。
4. 如下文档提供了类似原子操作 https://gcc.gnu.org/onlinedocs/gcc-4.4.3/gcc/Atomic-Builtins.html 和 https://google-perftools.googlecode.com/svn/trunk/src/base/atomicops-internals-x86.h

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.