<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 8, 2013, at 1:29 AM, Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><blockquote type="cite">The ideas which I found most interesting on the "Open Projects" wiki<br>page are:<br>• Compiling RTEMS with CLANG. (see [2])<br></blockquote><br>Having the code compile on clang would be welcome. I assume this aspect of the task would relate specifically to RTEMS code changes. Is this correct ?<br></blockquote><div><br></div><div>Yes, however, I would not be surprised if we hit numerous bugs (i.e. in multiarch support) along the way. My idea how to cope with that is that we can fill bug reports and even submit patches right away if the solutions are trivial. If the bugs are non-trivial, we should agree ad-hoc if it's better to workaround the bug or to solve it within clang. At least that's what I propose, but I'm open to other suggestions.</div><div><br></div><br><blockquote type="cite"><blockquote type="cite">• Packaging RTEMS tools for Mac OS X (see [3])<br></blockquote><br>MacOS support for gcc tools is provided by the RTEMS Source Builder (RSB). The details are ..<br><br><a href="http://www.rtems.org/ftp/pub/rtems/people/chrisj/source-builder/source-builder.html">http://www.rtems.org/ftp/pub/rtems/people/chrisj/source-builder/source-builder.html</a><br></blockquote><div><br></div><div>My idea was to provide pre-built package installer (.pkg) and maybe fink/macports packages.</div><div><br></div><br><blockquote type="cite">I would welcome support for clang. Is this enough for a SOCIS project ? If clang needs changes for RTEMS then this would start to look like a sizable task.<br></blockquote><div><br></div><div>Let's hope it won't grow out of proportions :)</div><div><br></div><br><blockquote type="cite">Do we need a specific clang build for each RTEMS architecture ?<br></blockquote><div><br></div><div>First of all, clang currently supports only limited number of targets, see [1]. My suggestion is to complete full build for 1 platform first (x86 or ARM) and only after this focus on sparc and other platforms. It's quite improbable that clang will ever support all platforms supported by RTEMS, even though llvm has a nice list of supported architectures [2].</div><div><br></div><br><blockquote type="cite">Does clang handle the multilib configurations RTEMS needs ?<br></blockquote><br>In past two years there have been substantial work done on supporting multilib configurations but I have reasons to believe that it will not be flawless. I would suggest we also consider using ellcc [3].</div><div><br></div><div><br><blockquote type="cite">Which backends are considered stable and worth looking at ?<br></blockquote><div><br></div><div>LLVM only.</div><div><br></div><br><blockquote type="cite">There are efforts underway for the Cortex-A9. This is happening in the xilinx-zynq bsps. This is a due core device so SMP is being worked on here. FYI I have OpenOCD working with the A9.<br></blockquote><div><br></div>Nice. What is the current status of Cortex-A9 support?</div><div><br></div><div><br><blockquote type="cite"><blockquote type="cite">However, I<br>think it's not possible for one person to do such port in so short time,<br>so I would work on this only if I was to be a part of a team.<br><br>Regarding the CLANG and RTEMS tools on Mac, I feel confident this is<br>doable by one person and within the given time schedule. I own 3 macs,<br>on which I run 10.6, 10.7 and 10.8 OS X versions for development purposes.<br><br></blockquote><br>Nice. I run MacOS and FreeBSD and keep the tools updated on both using the RSB. It is nice to see other MacOS users entering the community.<br></blockquote><div><br></div><div>Yep, OS X is solid system to work with. I wish RTEMS would provide binary tools packages for both OS X and Linux. I saw that some prebuilt packages were worked on during GSoC 2008. If the community decides on following up on this work, I will be happy to improve and automatize Linux prebuilt versions too. From what I've gathered, there is noone working on debian/ubuntu packages even though they are the most common distributions.</div><div><br></div><div>cheers</div><div>Marian</div><div><br></div></div><div>[1] <a href="http://clang.llvm.org/docs/UsersManual.html#target-specific-features-and-limitations">http://clang.llvm.org/docs/UsersManual.html#target-specific-features-and-limitations</a></div>[2] <a href="http://paste.lisp.org/display/138385">http://paste.lisp.org/display/138385</a><div>[3] <a href="http://ellcc.org/">http://ellcc.org/</a></div></body></html>