<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Richard Hyman via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Do., 22. Sep. 2022, 09:00:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br>1. Does FPC compile natively for the ARM Macs, specifically an M1? Docs I found do not directly answer this question (he's thinking about purchasing an M1 Mac mini).<br></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This is supported since 3.2.2.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">2. Does FPC provide any support for interfacing to the system?<br></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Aside from interfacing through the C API FPC can also interact with Objective C objects. </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br> a. Can an FPC compiled app be run from the terminal with recognition of input parameters (standard I/O). E.G. run something such as "myApp /../myInputFile.txt /../myOutputFile.txt", and have the app parse $1 and $2 for the input and output files?<br></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You can access parameter values using the ParamStr functions and then you need to open the files with the file APilI of your choice. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br> If FPC supports standard I/O, how is it accomplished within the app?<br></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">FPC supports the standard Pascal I/O using Assign, Read, Write and friends, an imperative style FileOpen, FileRead, FileWrite API as well as the TStream based API. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br> b. Does FPC support Mac system APIs? This is a general question since API support in any one of several areas (beyond graphics for example) would be beneficial.<br></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Since FPC can interact with the system as mentioned above, it does. A unit with various converted API headers is provided. </div><div dir="auto"><br></div><div dir="auto">Just look at what Lazarus can do. It's a native macOS application and without interfacing with the macOS API this wouldn't be possible. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"></div>
</blockquote></div></div></div>