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

Cross compilation

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 7
Thread images: 1

File: knowing-1.jpg (51KB, 550x362px) Image search: [Google]
knowing-1.jpg
51KB, 550x362px
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 posts: 7
Thread images: 1


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.