<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — Minimal possible build for tinycurl]]></title>
		<link>https://www.wolfssl.com/forums/topic2248-minimal-possible-build-for-tinycurl.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2248.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Minimal possible build for tinycurl.]]></description>
		<lastBuildDate>Wed, 18 Dec 2024 07:41:29 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Minimal possible build for tinycurl]]></title>
			<link>https://www.wolfssl.com/forums/post8142.html#p8142</link>
			<description><![CDATA[<p>No, im expecting TLSv1.2 or TLSv1.3, whichever is smaller. I didn&#039;t expect to get exactly 100k ofcourse, but i cant get even 300k... but 400-600k instead. Recommended tinycurl version compiles into 201k with literally everything disabled. only HTTP enabled. That&#039;s why i&#039;m wondering maybe need to use some specific version of curl? Because even curl without wolfSSL is much bigger than expected</p>]]></description>
			<author><![CDATA[null@example.com (de2)]]></author>
			<pubDate>Wed, 18 Dec 2024 07:41:29 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8142.html#p8142</guid>
		</item>
		<item>
			<title><![CDATA[Re: Minimal possible build for tinycurl]]></title>
			<link>https://www.wolfssl.com/forums/post8141.html#p8141</link>
			<description><![CDATA[<p>The &quot;100Kb&quot; footprint was achieved with a limited build only supporting pre-shared keys. In order to support certificates for normal TLS, you will need to adjust your footprint expectations. Is PSK a viable path forward for your project?</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Tue, 17 Dec 2024 22:39:09 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8141.html#p8141</guid>
		</item>
		<item>
			<title><![CDATA[Re: Minimal possible build for tinycurl]]></title>
			<link>https://www.wolfssl.com/forums/post8138.html#p8138</link>
			<description><![CDATA[<p>I&#039;m not using latest versions because it results in even bigger size. I cannot use latest version of wolfssl also because it fails to build when i start disabling unneeded options</p><br /><div class="codebox"><pre><code>git checkout v4.8.0-stable

export CFLAGS=&quot;-Wno-error -Os&quot;
./configure \
--host=${ARCH} \
CC=${CROSS_COMPILE}-gcc LD=${CROSS_COMPILE}-ld \
AR=${CROSS_COMPILE}-ar RANLIB=${CROSS_COMPILE}-ranlib \
STRIP=${CROSS_COMPILE}-strip \
RANLIB=${CROSS_COMPILE}-ranlib \
--prefix=/tmp/wolf \
--disable-tls13 --disable-oldtls --disable-sslv3 --disable-tlsv10 \
--disable-sha512 --disable-sha384 --disable-sha224 --disable-sha3 --disable-chacha \
--disable-pkcs12 --disable-poly1305 --disable-dh --disable-rsa \
--disable-examples --disable-crypttests \
--disable-shared --enable-static</code></pre></div><p>and tinycurl </p><div class="codebox"><pre><code>export CFLAGS=&quot;-Os -ffunction-sections -fdata-sections -fno-unwind-tables -fno-asynchronous-unwind-tables -flto&quot;
export LDFLAGS=&quot;-Wl,-s -Wl,-Bsymbolic -Wl,--gc-sections -lm&quot;
...
disable-everything
...
--with-wolfssl=/tmp/wolf \
--disable-shared \
--enable-static</code></pre></div><p>This results in 470k wolfSSL static lib and 200k curl without ssl, 470k curl with wolfssl</p>]]></description>
			<author><![CDATA[null@example.com (de2)]]></author>
			<pubDate>Tue, 17 Dec 2024 04:42:23 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8138.html#p8138</guid>
		</item>
		<item>
			<title><![CDATA[Re: Minimal possible build for tinycurl]]></title>
			<link>https://www.wolfssl.com/forums/post8137.html#p8137</link>
			<description><![CDATA[<p>Hi de2,</p><p>Please share your build settings for wolfSSL and tinycurl, please also ensure you are using the latest version of each which is currently wolfSSL 5.7.4 and tinycurl 8.4.0.&nbsp; Which TLS versions/algorithms do you require for your use case?</p><p>As you are using a static library, note that the library size is not the final size as the linker will discard a significant part of the library when linking to your application.&nbsp; If you are using libcurl rather than tinycurl as a standalone application you will need to link it into your application then check the size with your toolchain&#039;s size utility or with the map file generated by your compiler.&nbsp; Please also ensure that you are using your compiler&#039;s size optimization option (for example -Os) and have LTO enabled.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Mon, 16 Dec 2024 22:48:25 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8137.html#p8137</guid>
		</item>
		<item>
			<title><![CDATA[Minimal possible build for tinycurl]]></title>
			<link>https://www.wolfssl.com/forums/post8136.html#p8136</link>
			<description><![CDATA[<p>Hi, anyone got build options list that would allow at least something similar to &quot;100k&quot; from the release news?<br />I cant get even beyond 300 kilobytes for static library (which results in +200k to a tinycurl, which is already 220k in the smallest possible build)</p><p>So best case curl with libcurl and wolfssl embedded is 440k, which is extremely far from the &quot;100k&quot;</p><p>Trying on tinycurl 7.79.1 and wolfssl around 5.x</p>]]></description>
			<author><![CDATA[null@example.com (de2)]]></author>
			<pubDate>Mon, 16 Dec 2024 18:23:08 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8136.html#p8136</guid>
		</item>
	</channel>
</rss>
