[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Cross compilation
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 7
Thread images: 1
File: knowing-1.jpg (51 KB, 550x362) Image search: [Google]
knowing-1.jpg
51 KB, 550x362
Hey /g/,

Cross compiling can be a tricky business. Just because you know the target architecture, it seems unlikely you can cross compile any program without error. What all do you need to know about a machine (architecture)? What are some common pitfalls (memory configuration)? What compiles do you suggest (gcc)?


Background: I am learning about server-side scripting so I can make dynamic webzones. I discover my host doesn't allow me to run a gcc from their /usr/bin/gcc directory for "security reasons". So I have to cross compile. Surprisingly I was able to compile on my machine, and upload the result, but that surprised me. What do I need to know to make about the target machine to properly cross compile?

If this doesn't fit /g/, this can be a general compilers/assemblers thread.
>>
Oh yeah, operating system seems important to know too.
>>
Operating system and architecture should be enough
>>
>>55262432
Do you know if their are any issues with linked libraries? It seems prudent to make stand-alone executables.
>>
Also, last question, how compatible are different version of linux in terms of executable units?
>>
>>55262707
Very. Linux does not break userspace.

Your executable will run on any version of linux released since the most recently added syscall that you use was added.
>>
>>55263101
As long as you don't use something in libstdc++ or glibc that has ABI changes between versions ,':^)
Thread replies: 7
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.